Cloud-config configuration does not work with Ubuntu 16.04 LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
Sergey Arkhipov |
Bug Description
Detailed bug description:
cloud-config configuration on Ubuntu Xenial Xerus (16.04 LTS) do not work on MOS 9.0. In the same time, the same provision with Ubuntu Trusty Tahr (14.04 LTS) works as expected.
Steps to reproduce:
1. Upload Xenial Xerus image. I've used
https:/
2. Proceed to Horizon on 'Project -> Instances' page and push 'Launch instance'
3. Fill the form with following settings:
* Details:
- Instance name: <arbitrary name>
- Count: 1
* Source:
- Select Xenial image
- Create new volume: no
* Flavor:
- m1.small
* Network
- Select any network with access to external network
* No changes on 'Network ports', 'Security groups', 'Key Pair', 'Metadata'
* Configuration:
- Put following 'Customization script':
#cloud-config
chpasswd:
list: |
ubuntu:ubuntu
expire: False
packages:
- stress
4. Launch instance
5. Try to access instance with login/password 'ubuntu/ubuntu'
Expected results:
1. User with login 'ubuntu' and password 'ubuntu' exists and accessible.
2. Package 'stress' is installed.
Actual result:
1. Cannot login with 'ubuntu' and password 'ubuntu'
2. Package is not installed.
At the same time, the same usecase with Ubuntu 14.04 LTS works
Reproducibility:
100%
Workaround:
1. Do not use Xenial yet.
Impact:
1. New LTS of Ubuntu does not work with MOS 9.0 completely.
Description of the environment:
- MOS 9.0 build 310
- OpenStack Release: Mitaka on Ubuntu 14.04
- Compute: KVM
- Network: Neutron with VLAN segmentation
- Storage Backends
Ceph RBD for volumes (Cinder)
Ceph RadosGW for objects (Swift API)
Ceph RBD for ephemeral volumes (Nova)
Ceph RBD for images (Glance)
Additional information:
Console log of Xenial Xerus: http://
Console log of Trusty Tahr: http://
summary: |
- Cloud-config configuration do not work with Ubuntu 16.04 LTS + Cloud-config configuration does not work with Ubuntu 16.04 LTS |
Changed in mos: | |
milestone: | 9.0 → 10.0 |
milestone: | 10.0 → 9.0 |
Changed in mos: | |
importance: | Undecided → High |
Changed in mos: | |
status: | Invalid → Incomplete |
Changed in mos: | |
milestone: | 9.0 → 10.0 |
Sergey, I see the following error in the Xenial log:
[ 52.733180] cloud-init[960]: 2016-05-18 09:10:07,616 - util.py[WARNING]: Failed fetching userdata from url http:// 169.254. 169.254/ 2009-04- 04/user- data
i.e. the customization script you've provided hasn't been fetched by the instance.
Could you please attach the diagnostic snapshot? (we need logs from the compute node, as well as nova-api/ neutron- metadata- proxy logs from all controllers) Cloud init logs from the instance would also be nice to have.
Another point is that if it's really a problem with the Ubuntu cloud image (as you claim Trusty works on the same environment 100% of times), then, perhaps, it's better just to report it directly to upstream, bypassing the MOS Linux team, as they don't have any control over ubuntu cloud images.