glance-replicator doesn't support https connection to glance api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Won't Fix
|
Wishlist
|
Itisha Dewan |
Bug Description
Tried to call livecopy command with glance-replicator, encountered the following error:
[root@controller66 ~]# glance-replicator livecopy -M $r1_token -S $r2_token 192.168.101.10:9292 controller66.
2014-12-04 14:03:11.766 804 CRITICAL glance [-] BadStatusLine
2014-12-04 14:03:11.766 804 TRACE glance Traceback (most recent call last):
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/bin/
2014-12-04 14:03:11.766 804 TRACE glance sys.exit(main())
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib/
2014-12-04 14:03:11.766 804 TRACE glance command(options, args)
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib/
2014-12-04 14:03:11.766 804 TRACE glance for image in master_
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib/
2014-12-04 14:03:11.766 804 TRACE glance response = self._http_
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib/
2014-12-04 14:03:11.766 804 TRACE glance response = self.conn.
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib64/
2014-12-04 14:03:11.766 804 TRACE glance response.begin()
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib64/
2014-12-04 14:03:11.766 804 TRACE glance version, status, reason = self._read_status()
2014-12-04 14:03:11.766 804 TRACE glance File "/usr/lib64/
2014-12-04 14:03:11.766 804 TRACE glance raise BadStatusLine(line)
2014-12-04 14:03:11.766 804 TRACE glance BadStatusLine
2014-12-04 14:03:11.766 804 TRACE glance
After checking the codes, I found that the connection is established with httplib.
Changed in glance: | |
assignee: | nobody → Ian Cordasco (icordasc) |
Changed in glance: | |
status: | In Progress → Won't Fix |
I read the implementation of glance-replicator, and found that the api call is initiated by httplib. HTTPConnection only without considering the https case.
I think we can enhance it by adding httplib. HTTPSConnection into it. but i'm hesitating about it because i noticed the implementation of glance-replicator is kind of different from other clis, i don't see other clis like nova, cinder use httplib.
So i would like to see any comments from community, to figure out how to enhance glance-replicator to let it support https