<div dir="ltr">Hey, Nova guys<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)"> File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 39, in __repr__
return "<Server: %s>" % <a href="http://self.name">self.name</a>
File "/opt/stack/python-novaclient/novaclient/openstack/common/apiclient/base.py", line 461, in __getattr__
self.get()
File "/opt/stack/python-novaclient/novaclient/openstack/common/apiclient/base.py", line 479, in get
new = self.manager.get(<a href="http://self.id">self.id</a>)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 543, in get
return self._get("/servers/%s" % base.getid(server), "server")
File "/opt/stack/python-novaclient/novaclient/base.py", line 147, in _get
_resp, body = self.api.client.get(url)
File "/opt/stack/python-novaclient/novaclient/client.py", line 283, in get
return self._cs_request(url, 'GET', **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 260, in _cs_request
**kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 242, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 236, in request
raise exceptions.from_response(resp, body, url, method)
NotFound: Instance could not be found (HTTP 404) (Request-ID: req-e6208ee5-5fb3-4195-983f-9847124a9982)</pre><div><br></div><div>Looking this trace stack, we could know that I have a <i><b>server</b></i> object, and when called <a href="http://server.name">server.name</a>, the <b><i>server</i></b> went to lazy load. That means this <i><b>server</b></i> object doesn't </div>
<div>have name AttributeError from initializing. And all attributes of <b><i>server</i></b> are from nova api response. That is the response against nova get-server api didn't contain name </div><div>keyword. So what case would make this happened?</div>
<div><br></div><div>The following 404 error is understandable. In that runtime, my codes are trying to deleting a server. So during the lazy loading, the server has been already deleted which</div><div>results that 404 error.</div>
<div><br></div><div>My question is about that "<a href="http://self.name">self.name</a>". Why does such a server object miss the "name" attribute?</div><div><br></div>-- <br><div dir="ltr"><font color="#444444">Gareth</font><div>
<font color="#444444"><br></font><div><i><font color="#444444">Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball</font></i></div><div><i><font color="#666666">OpenStack contributor, kun_huang@freenode</font></i></div>
<div><i><font color="#999999">My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me </font></i></div><div><i><font color="#999999">and I'll donate $1 or ¥1 to an open organization you specify.</font></i></div>
</div></div>
</div></div>