Cobbler unable to send requests to ucsm Bseries servers when ucsm has disabled http or auto-redirects http requests to https

Bug #1163982 reported by Shweta P
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Committed
Medium
Shweta P
Folsom
Fix Committed
Medium
Shweta P

Bug Description

cobbler system poweroff --name=ci-compute01
task started: 2013-03-29_193254_power
task started (id=Power management (off), time=Fri Mar 29 19:32:54 2013)
cobbler power configuration is:
      type : ucs
      address: 172.20.231.30:org-root
      user : shpadubi
      id : Server-8-kvm-palo
- fence_cisco_ucs -s org-root -a "172.20.231.30" -l "admin" -p "XXXXXX" -n "Server-8-kvm-palo" -o "off"
running: ['/bin/sh', '-c', u'fence_cisco_ucs -s org-root -a "172.20.231.30" -l "admin" -p "XXXXXX" -n "Server-8-kvm-palo" -o "off"']
received on stdout:
received on stderr: Unable to connect/login to fencing device

Shweta P (shweta-ap05)
Changed in openstack-cisco:
importance: Undecided → Medium
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

I think you're suggesting a code fix (e.g. expose some variable in site.pp that allows users to specify whether they need to use http or https and/or the port numbers to connect on) vs a documentation fix (e.g. update the documentation to call out that you must enable http or redirects)?

Revision history for this message
Mark T. Voelker (mvoelker) wrote :
Revision history for this message
Shweta P (shweta-ap05) wrote :

So the way it exists today, is cobbler creates the underlying fence command to talk to the ucsm, via http only.

I initially thought we would have to add a new variable in site.pp to identify if the ucsm is setup to use http or https.
But in all the ucsm deployments I have seen https is always enabled, http may or may not be enabled. So I just changed the default fence command that cobbler creates to talk to the ucsm, via https.
The additional "-z" in the fence command is for sending the request via https.

https://github.com/CiscoSystems/puppet-cobbler/pull/22

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

I think we have a documentation issue either way, actually. If we only support one or the other with our default cobbler config today, we should document that somewhere. After all, UCSM does allow you to enable or disable both http and https.

Revision history for this message
Mark T. Voelker (mvoelker) wrote :
Revision history for this message
Shweta P (shweta-ap05) wrote :
Revision history for this message
Chip (cbaesema) wrote :

Pull requests merged for all three branches

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.