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 <[email protected]> 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 > > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> > > <html><head> > > <title>404 Not Found</title> > > </head><body> > > <h1>Not Found</h1> > > <p>The requested URL /userdata/192.168.56.1/user-data was not found on > this > > server.</p> > > </body></html> > > > > 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
