← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1821216] [NEW] GATEWAY doesn't render VMWare

 

Public bug reported:

cloud-init isn't rendered GATEWAY in /etc/sysconfig/network-scripts/ifcfg-eth0 with VMWare:
```
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEVICE=eth0
IPADDR=172.20.14.192
NETMASK=255.255.255.0
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_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
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_modules:
 - mounts
 - locale
 - set-passwords
 - yum-configure
 - yum-add-repo
 - package-update-upgrade-install
 - timezone
 - puppet
 - chef
 - salt-minion
 - mcollective
 - disable-ec2-metadata
 - runcmd

cloud_final_modules:
 - scripts-per-once
 - scripts-per-boot
 - scripts-per-instance
 - scripts-user
 - ssh-authkey-fingerprints
 - 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/templates
  ssh_svcname: sshd

chpasswd:
   expire: false


disable_vmware_customization: false
# vim:syntax=yaml
```

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

** Attachment added: "cloud-init.tar.gz"
   https://bugs.launchpad.net/bugs/1821216/+attachment/5248257/+files/cloud-init.tar.gz

-- 
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/1821216

Title:
  GATEWAY doesn't render VMWare

Status in cloud-init:
  New

Bug description:
  cloud-init isn't rendered GATEWAY in /etc/sysconfig/network-scripts/ifcfg-eth0 with VMWare:
  ```
  # Created by cloud-init on instance boot automatically, do not edit.
  #
  BOOTPROTO=none
  DEVICE=eth0
  IPADDR=172.20.14.192
  NETMASK=255.255.255.0
  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_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
  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_modules:
   - mounts
   - locale
   - set-passwords
   - yum-configure
   - yum-add-repo
   - package-update-upgrade-install
   - timezone
   - puppet
   - chef
   - salt-minion
   - mcollective
   - disable-ec2-metadata
   - runcmd

  cloud_final_modules:
   - scripts-per-once
   - scripts-per-boot
   - scripts-per-instance
   - scripts-user
   - ssh-authkey-fingerprints
   - 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/templates
    ssh_svcname: sshd

  chpasswd:
     expire: false

  
  disable_vmware_customization: false
  # vim:syntax=yaml
  ```

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


Follow ups