Swift Node install error in Full HA setup

Bug #1277527 reported by Shweta P
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Medium
Chris Ricker
Havana
Fix Released
Medium
Chris Ricker

Bug Description

I see the following error on all my swift storage nodes in the first puppet run

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Service[swift-account-auditor] to [nil] at /usr/share/puppet/modules/swift/manifests/storage/account.pp:22; resource ["Service", nil] already declared at /usr/share/puppet/modules/swift/manifests/storage/account.pp:14 at /usr/share/puppet/modules/swift/manifests/storage/account.pp:22 on node swift-storage01.ctocllab.cisco.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

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

Could you attach your user.common.yaml and user.full_ha.yaml files for reference?

Shweta P (shweta-ap05)
Changed in openstack-cisco:
importance: Undecided → Medium
Revision history for this message
Shweta P (shweta-ap05) wrote :
Revision history for this message
Shweta P (shweta-ap05) wrote :
Changed in openstack-cisco:
assignee: nobody → Chris Ricker (chris-ricker)
Revision history for this message
Craig Anderson (canderso) wrote :

I would like to add that I am also having this exact same issue with the full_ha deployment.

Revision history for this message
Craig Anderson (canderso) wrote :

puppet master log had some more details on this:

Mar 5 03:51:04 build-server puppet-master[3126]: (Scope(Swift::Storage::Server[6002])) swift storage server account must specify account-server
Mar 5 03:51:04 build-server puppet-master[3126]: (Scope(Class[Swift::Storage::Account])) Could not look up qualified variable '::swift::params::account_auditor_service_name'; class ::swift::params has not been evaluated
Mar 5 03:51:04 build-server puppet-master[3126]: (Scope(Class[Swift::Storage::Account])) Could not look up qualified variable '::swift::params::service_provider'; class ::swift::params has not been evaluated
Mar 5 03:51:04 build-server puppet-master[3126]: (Scope(Class[Swift::Storage::Account])) Could not look up qualified variable '::swift::params::account_reaper_service_name'; class ::swift::params has not been evaluated
Mar 5 03:51:04 build-server puppet-master[3126]: (Scope(Class[Swift::Storage::Account])) Could not look up qualified variable '::swift::params::service_provider'; class ::swift::params has not been evaluated
Mar 5 03:51:04 build-server puppet-master[3126]: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Service[swift-account-reaper] to [nil] at /usr/share/puppet/modules/swift/manifests/storage/account.pp:21; resource ["Service", nil] already declared at /usr/share/puppet/modules/swift/manifests/storage/account.pp:14 at /usr/share/puppet/modules/swift/manifests/storage/account.pp:21 on node swift-storage01.tbd

Revision history for this message
Craig Anderson (canderso) wrote :

Got past the problem by adding this line:

include swift::params

to the class, so that the relevant swift parameters would be parsed / loaded before the class tried to use them.

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

The parameter class problem is addressed by:
https://review.openstack.org/78302 (master)
https://review.openstack.org/78326 (stable/havana)

Revision history for this message
Chris Ricker (chris-ricker) wrote :

other issues associated with this are being tracked by separate bugs. Primarily interface assignment in full ha, and data mappings for full ha

Changed in openstack-cisco:
status: New → Fix Committed
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.