coe::site_index errors during initial puppet run of build node

Bug #1216032 reported by Daneyon Hansen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Low
Chris Ricker
Grizzly
Fix Released
Low
Chris Ricker

Bug Description

The following error is observed during the initial puppet run of the build node:

err: /Stage[main]/Coe::Site_index/File[/var/www/index.html]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /var/www/index.html.puppettmp_5551 at /usr/share/puppet/modules/coe/manifests/site_index.pp:14
err: /Stage[main]/Coe::Site_index/File[/var/www/header-logo.png]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /var/www/header-logo.png.puppettmp_6924 at /usr/share/puppet/modules/coe/manifests/site_index.pp:22

This is because the coe::site_index class requires 2 files (index.html and header-logo.png) without first ensuring the directory (/var/www) is created.

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Looks like a timing issue as I haven't observed this. Should be a simple fix.

Changed in openstack-cisco:
status: New → Triaged
importance: Undecided → Low
Changed in openstack-cisco:
assignee: Mark T. Voelker (mvoelker) → Chris Ricker (chris-ricker)
Revision history for this message
Chris Ricker (chris-ricker) wrote :
Changed in openstack-cisco:
status: Triaged → In Progress
Changed in openstack-cisco:
status: In Progress → Fix Committed
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Hmm...there is one condition on which this fix will break things. If you don't have a $node_gateway set in your site.pp file, then this is a problem:

https://github.com/CiscoSystems/grizzly-manifests/blob/multi-node/manifests/core.pp#L695-L700

Because it causes:

Duplicate definition: File[/var/www] is already defined in file /usr/share/puppet/modules/coe/manifests/site_index.pp at line 29; cannot redefine at /etc/puppet/manifests/core.pp:877 on node cvf2-server-f1.local.lab

(ignore the line number in the error message...I was working off the bp/ha.g2 branch when I noticed this, but the same should apply in multi-node)

That might explain why some of us didn't see this issue in the first place (e.g. because we didn't have a $node_gateway set in our setups).

Revision history for this message
Mark T. Voelker (mvoelker) wrote :
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.