GATEWAY doesn't render VMWare
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
cloud-init isn't rendered GATEWAY in /etc/sysconfig/
```
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEVICE=eth0
IPADDR=
NETMASK=
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
```
Here's the default amazon-linux2 cloud.cfg:
```
users:
- default
disable_root: true
ssh_pwauth: false
mount_default_
resize_rootfs: noblock
resize_rootfs_tmp: /dev
ssh_deletekeys: false
ssh_genkeytypes: ~
syslog_fix_perms: ~
datasource_list: [ NoCloud, AltCloud, ConfigDrive, OVF, None ]
repo_upgrade: security
cloud_init_modules:
- migrator
- bootcmd
- write-files
- growpart
- resizefs
- set-hostname
- update-hostname
- update-etc-hosts
- rsyslog
- users-groups
- ssh
cloud_config_
- mounts
- locale
- set-passwords
- yum-configure
- yum-add-repo
- package-
- timezone
- puppet
- chef
- salt-minion
- mcollective
- disable-
- runcmd
cloud_final_
- scripts-per-once
- scripts-per-boot
- scripts-
- scripts-user
- ssh-authkey-
- keys-to-console
- phone-home
- final-message
system_info:
default_user:
name: ec2-user
lock_passwd: false
gecos: EC2 Default User
groups: [wheel, adm, systemd-journal]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
distro: amazon
paths:
cloud_dir: /var/lib/cloud
templates_dir: /etc/cloud/
ssh_svcname: sshd
chpasswd:
expire: false
disable_
# vim:syntax=yaml
```
Changed in cloud-init: | |
status: | Incomplete → New |
Hi,
Thanks for filing a bug and attaching the logs.
Looking at the logs, it appears that the image has some modifications: namely, something created /etc/udev/ rules.d/ 70-persistent- net.rules as a _directory_; which it is typically a file that cloud-init writes data. This is the traceback in the logs:
Traceback (most recent call last): python2. 7/site- packages/ cloudinit/ cmd/main. py", line 655, in status_wrapper python2. 7/site- packages/ cloudinit/ cmd/main. py", line 361, in main_init apply_network_ config( bring_up= bool(mode != sources. DSMODE_ LOCAL)) python2. 7/site- packages/ cloudinit/ stages. py", line 659, in apply_network_ config apply_network_ config( netcfg, bring_up=bring_up) python2. 7/site- packages/ cloudinit/ distros/ __init_ _.py", line 179, in apply_network_ config network_ config( netconfig) python2. 7/site- packages/ cloudinit/ distros/ rhel.py" , line 56, in _write_ network_ config _write_ network_ config( netconfig) python2. 7/site- packages/ cloudinit/ distros/ __init_ _.py", line 98, in _supported_ write_network_ config render_ network_ config( network_ config= network_ config) python2. 7/site- packages/ cloudinit/ net/renderer. py", line 53, in render_ network_ config state=parse_ net_config_ data(network_ config) , target=target) python2. 7/site- packages/ cloudinit/ net/sysconfig. py", line 607, in render_ network_ state write_file( netrules_ path, netrules_content, file_mode) python2. 7/site- packages/ cloudinit/ util.py" , line 1860, in write_file rules.d/ 70-persistent- net.rules'
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
return self.distro.
File "/usr/lib/
dev_names = self._write_
File "/usr/lib/
return self._supported
File "/usr/lib/
renderer.
File "/usr/lib/
network_
File "/usr/lib/
util.
File "/usr/lib/
with open(filename, omode) as fh:
IOError: [Errno 21] Is a directory: '/etc/udev/
Can you see if your image before booting includes that path as a directory and remove that and try again?