yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92059
[Bug 1795628] Re: cloud-init clean does not remove /etc/network/interfaces.d/50-cloud-init.cfg
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3240
** Bug watch added: github.com/canonical/cloud-init/issues #3240
https://github.com/canonical/cloud-init/issues/3240
** Changed in: cloud-init
Status: Triaged => Expired
--
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:
Expired
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
References