404 - not found user meta-data error
Hi all, I Followed this[1] guide for view user-meta data set for my instance. When I'm running the curl command for retrieve the user-meta data, I'm getting this error. $ curl http://192.168.56.22/latest/user-data 404 Not Found Not Found The requested URL /userdata/192.168.56.1/user-data was not found on this server. According to cloudstack UI, I have one virtual router (IP - 192.168.56.22). So I used that IP in curl command. My instance's IP is 192.168.56.27. I used jcloud api for set user meta-data Any ideas? [1] - https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/Admin_Guide/user-data-and-meta-data.html -- Thanks, Regards, ASH
Re: 404 - not found user meta-data error
Hi, are you testing the curl command from the instance? The user- and meta-data can only be accessed by the instance. I ask because the 404 is for "/userdata/192.168.56.1/user-data" which suggests you are testing from a machine with the IP 192.168.56.1 and not the instance at 192.168.56.27. Best regards, Kirk On 10/13/2014 04:06 AM, Asanka sanjaya Herath wrote: > Hi all, > > I Followed this[1] guide for view user-meta data set for my instance. When > I'm running the curl command for retrieve the user-meta data, I'm getting > this error. > > $ curl http://192.168.56.22/latest/user-data > > > 404 Not Found > > Not Found > The requested URL /userdata/192.168.56.1/user-data was not found on this > server. > > > According to cloudstack UI, I have one virtual router (IP - 192.168.56.22). > So I used that IP in curl command. My instance's IP is 192.168.56.27. I > used jcloud api for set user meta-data > > Any ideas? > > > [1] - > https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/Admin_Guide/user-data-and-meta-data.html > > >
Re: 404 - not found user meta-data error
Hi kirk, Thank you. Problem solved. I think this user guide should be edited , Because this guide doesn't say from where we should run that command. Thank you again. On Tue, Oct 14, 2014 at 1:57 AM, Kirk Kosinski wrote: > Hi, are you testing the curl command from the instance? The user- and > meta-data can only be accessed by the instance. I ask because the 404 > is for "/userdata/192.168.56.1/user-data" which suggests you are testing > from a machine with the IP 192.168.56.1 and not the instance at > 192.168.56.27. > > Best regards, > Kirk > > On 10/13/2014 04:06 AM, Asanka sanjaya Herath wrote: > > Hi all, > > > > I Followed this[1] guide for view user-meta data set for my instance. > When > > I'm running the curl command for retrieve the user-meta data, I'm getting > > this error. > > > > $ curl http://192.168.56.22/latest/user-data > > > > > > 404 Not Found > > > > Not Found > > The requested URL /userdata/192.168.56.1/user-data was not found on > this > > server. > > > > > > According to cloudstack UI, I have one virtual router (IP - > 192.168.56.22). > > So I used that IP in curl command. My instance's IP is 192.168.56.27. I > > used jcloud api for set user meta-data > > > > Any ideas? > > > > > > [1] - > > > https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/Admin_Guide/user-data-and-meta-data.html > > > > > > > > -- Thanks, Regards, ASH
Re: 404 - not found user meta-data error
On Oct 14, 2014, at 8:11 AM, Asanka sanjaya Herath wrote: > Hi kirk, > > Thank you. Problem solved. I think this user guide should be edited , > Because this guide doesn't say from where we should run that command. > Thank you again. The latest docs for 4.4 are at: http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.4/api.html?highlight=user%20data#provisioning-and-authentication-api You were looking at the 4.0.1 docs. You can easily correct the docs by sending a github pull request. Click on the "Edit on github " button at the top right. > > > On Tue, Oct 14, 2014 at 1:57 AM, Kirk Kosinski > wrote: > >> Hi, are you testing the curl command from the instance? The user- and >> meta-data can only be accessed by the instance. I ask because the 404 >> is for "/userdata/192.168.56.1/user-data" which suggests you are testing >> from a machine with the IP 192.168.56.1 and not the instance at >> 192.168.56.27. >> >> Best regards, >> Kirk >> >> On 10/13/2014 04:06 AM, Asanka sanjaya Herath wrote: >>> Hi all, >>> >>> I Followed this[1] guide for view user-meta data set for my instance. >> When >>> I'm running the curl command for retrieve the user-meta data, I'm getting >>> this error. >>> >>> $ curl http://192.168.56.22/latest/user-data >>> >>> >>> 404 Not Found >>> >>> Not Found >>> The requested URL /userdata/192.168.56.1/user-data was not found on >> this >>> server. >>> >>> >>> According to cloudstack UI, I have one virtual router (IP - >> 192.168.56.22). >>> So I used that IP in curl command. My instance's IP is 192.168.56.27. I >>> used jcloud api for set user meta-data >>> >>> Any ideas? >>> >>> >>> [1] - >>> >> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/Admin_Guide/user-data-and-meta-data.html >>> >>> >>> >> >> > > > -- > Thanks, > Regards, > ASH