[openstack-dev] Conductor API has no attribute xxxxxx
Hi all, I have been trying to add a new table to the database. Now, I have created the table and I am going through conductor API to populate/update it. I have defined some function to achieve the task. There function are defined in conductor and db api, along with in conductor.manage and db.sqlalchemy.api. When I try to run the system it says AttributeError: 'ConductorAPI' object has no attribute 'xx' while the function is properly defined in Conductor API as well as manager and db.API. I back traced the flow of the code and it looks like the code reaches till conductor.api. The function at the conductor API is defined as: #In class LocalAPI def xx(self, context, node_id, values): return self._manager.xx(context, node_id, values) Now, after this it gives the error. Though the function is present in conductor.manager. Please help me find out why am I getting this error. Thanks ~Peeyush Gupta___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] Conductor API has no attribute xxxxxx
I have been trying to add a new table to the database. Just FYI, new database interfaces should be added using objects, which are automatically remotable. New conductor interfaces should not be added to make database queries. #In class LocalAPI def xx(self, context, node_id, values): return self._manager.xx(context, node_id, values) Is this on top of master? Adding to api - rpcapi - manager should do the trick. It would be helpful to know what you're trying to build this on top of, as well as a little more detail about what you've added. --Dan ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] Conductor API has no attribute xxxxxx
Hi Dan, Yeah, I figured that out. I was already using objects, but I didn't add the interface to the conductor.rpcapi. It's working fine now. Thanks. ~Peeyush Gupta From: Dan Smith d...@danplanet.com To: Peeyush Gupta gpeey...@ymail.com; OpenStack Development Mailing List openstack-dev@lists.openstack.org Sent: Tuesday, 10 September 2013 5:29 PM Subject: Re: [openstack-dev] Conductor API has no attribute xx I have been trying to add a new table to the database. Just FYI, new database interfaces should be added using objects, which are automatically remotable. New conductor interfaces should not be added to make database queries. #In class LocalAPI def xx(self, context, node_id, values): return self._manager.xx(context, node_id, values) Is this on top of master? Adding to api - rpcapi - manager should do the trick. It would be helpful to know what you're trying to build this on top of, as well as a little more detail about what you've added. --Dan___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev