cloud-init clean does not remove /etc/network/interfaces.d/50-cloud-init.cfg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
`cloud-init clean` does not remove `/etc/network/
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/
6. Manually remove `/etc/network/
This means that /etc/network/
Thanks for filing a bug. It's definitely a file cloud-init generates and it could clean it up if requested.