fuel-library noop tests fails on OSX for Parameter ensure failed on Package[cloud-init]: Provider must have features 'purgeable' to set 'ensure' to 'purged'

Bug #1493985 reported by Alex Schultz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Low
Alex Schultz

Bug Description

If you attempt to run the noop tests on an OSX box, there are failures for the ensure => 'purged' for cloud-init from the tools task. See http://paste.openstack.org/show/453154/

The purged maybe able to be switched to absent to clean up these errors.

Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Damian Szeluga (dszeluga)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/231934

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/231934
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=85eec2de011788d081c0352455d050b547579541
Submitter: Jenkins
Branch: master

commit 85eec2de011788d081c0352455d050b547579541
Author: Damian Szeluga <email address hidden>
Date: Wed Oct 7 13:46:53 2015 +0200

    Fix noop test on OS X

    Change-Id: I58c4debe407e1f0daea0b9c9293771357c117c62
    Closes-Bug: #1493985

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Reoped as patch was reverted.

Changed in fuel:
status: Fix Committed → New
Revision history for this message
Mike Scherbakov (mihgen) wrote :
Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/235479

Changed in fuel:
assignee: Damian Szeluga (dszeluga) → Alex Schultz (alex-schultz)
status: Confirmed → In Progress
Dmitry Pyzhov (dpyzhov)
tags: added: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/235479
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=b78251b26984ddaca211f973ec4c2f88eafe992b
Submitter: Jenkins
Branch: master

commit b78251b26984ddaca211f973ec4c2f88eafe992b
Author: Alex Schultz <email address hidden>
Date: Thu Oct 15 10:37:56 2015 -0500

    Switch cloud-init to absent to fix tests

    This change updates the ensure on cloud-init to absent as purged is not
    availble on all platforms. This will allow tests to pass cleanly on OSX
    or other systems where purged is unavailable.

    Change-Id: I43a40b79a022d4f6ed5ddb9479002461416fdea8
    Closes-Bug: #1493985

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Alexander Bozhenko (alexbozhenko) wrote :

Found that on 8.0 cloud-init is installed again, because of this commit:
https://github.com/openstack/fuel-library/commit/b78251b26984ddaca211f973ec4c2f88eafe992b

On 7.0 it was
/var/log/apt/history.log
Start-Date: 2015-10-05 22:24:32
Commandline: /usr/bin/apt-get -y -q remove --purge cloud-init
Purge: cloud-init:amd64 (0.7.5-0ubuntu1.12)
End-Date: 2015-10-05 22:24:32

On 8.0
/var/log/apt/history.log
Start-Date: 2016-03-16 13:59:51
Commandline: /usr/bin/apt-get -y -q remove cloud-init
Remove: cloud-init:amd64 (0.7.5-0ubuntu1.17)
End-Date: 2016-03-16 13:59:52

So on 8.0 cloud-init is actually present:
dpkg -L cloud-init
/etc
/etc/rsyslog.d
/etc/rsyslog.d/21-cloudinit.conf
/etc/profile.d
/etc/profile.d/Z99-cloud-locale-test.sh
/etc/init
/etc/init/cloud-init-local.conf
/etc/init/cloud-final.conf
/etc/init/cloud-init.conf
/etc/init/cloud-log-shutdown.conf
/etc/init/cloud-init-nonet.conf
/etc/init/cloud-config.conf
/etc/init/cloud-init-container.conf
...

And nodes are waiting for it on reboot... And if there is a metadata server in the network it may response with the script and, e.g. wipe disks on the node)

Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
Alex Schultz (alex-schultz) wrote :

We need to reopen Bug 1442572 for the correct versions. This is the issue when you use purged vs absent.

Changed in fuel:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.