Public bug reported:

`cloud-init clean` does not remove `/etc/network/interfaces.d/50-cloud-
init.cfg`

How to reproduce:

1. ubuntu 16.04.5

2. install a static cloud-init config containing network v2
e.g.

```
network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - "192.168.0.1"
```

3. Install a *new* cloud-init config which disables network
(this is because cloud-init network v2, among other bugs *ignores* the `metric` 
directive - but that is not this bug):

```
network:
  config: disabled
```

4. Run `cloud-init clean && cloud-init init`

5. The file `/etc/network/interfaces.d/50-cloud-init.cfg` is still there

6. Manually remove `/etc/network/interfaces.d/50-cloud-init.cfg` and run
clean+init again ... it is not recreated.

This means that /etc/network/interfaces.d/50-cloud-init.cfg created
under cloud-init is *not* deleted when running `cloud-init clean` == bug
== unexpected behavior.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1795628

Title:
  cloud-init clean does not remove /etc/network/interfaces.d/50-cloud-
  init.cfg

Status in cloud-init:
  New

Bug description:
  `cloud-init clean` does not remove `/etc/network/interfaces.d/50
  -cloud-init.cfg`

  How to reproduce:

  1. ubuntu 16.04.5

  2. install a static cloud-init config containing network v2
  e.g.

  ```
  network:
    version: 2
    ethernets:
      eth0:
        addresses:
          - "192.168.0.1"
  ```

  3. Install a *new* cloud-init config which disables network
  (this is because cloud-init network v2, among other bugs *ignores* the 
`metric` directive - but that is not this bug):

  ```
  network:
    config: disabled
  ```

  4. Run `cloud-init clean && cloud-init init`

  5. The file `/etc/network/interfaces.d/50-cloud-init.cfg` is still
  there

  6. Manually remove `/etc/network/interfaces.d/50-cloud-init.cfg` and
  run clean+init again ... it is not recreated.

  This means that /etc/network/interfaces.d/50-cloud-init.cfg created
  under cloud-init is *not* deleted when running `cloud-init clean` ==
  bug == unexpected behavior.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1795628/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to