← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1356855] [NEW] Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash

 

Public bug reported:

Hi,

Cloud-init 0.7.5 fails to get cloudstack user-data because of trailing
slash (ok in previous versions).

As a temp workaround I use the following patch in url_helper.py line 239
(0.7.5-0ubuntu1):

           if e.response.status_code == 404:
                if url.endswith("/"):
                    url = url[:-1]
                    req_args["url"] = url
                else:
                    url = url + "/"
                    req_args["url"] = url


I don't know how other products (EC2, openstack & co) deal with trailing slash

Hope that helps

Thanks

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1356855

Title:
  Cloud-init 0.7.5 Failed to get cloudstack user-data because of
  trailing slash

Status in Init scripts for use on cloud images:
  New

Bug description:
  Hi,

  Cloud-init 0.7.5 fails to get cloudstack user-data because of trailing
  slash (ok in previous versions).

  As a temp workaround I use the following patch in url_helper.py line
  239 (0.7.5-0ubuntu1):

             if e.response.status_code == 404:
                  if url.endswith("/"):
                      url = url[:-1]
                      req_args["url"] = url
                  else:
                      url = url + "/"
                      req_args["url"] = url

  
  I don't know how other products (EC2, openstack & co) deal with trailing slash

  Hope that helps

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions


Follow ups

References