Tuesday, 2016-06-07

*** ddieterly has joined #openstack-freezer00:04
*** Marcel_ has joined #openstack-freezer00:05
*** yangyape_ has quit IRC00:11
*** yangyapeng has joined #openstack-freezer01:17
*** ddieterly has quit IRC01:34
*** EinstCrazy has joined #openstack-freezer01:35
zengchenhi, guys. is it a bug when the mode is 'mongo' and loading the mode instance at BackupJob.execute_method. I think the loading may failed, because the mod_name=freezer.mode.mongo.MongoMode which is not exist, the real mod=name=freezer.mode.mongo.MongoDbMode.01:43
zengchenI think it is needed to change the class name of MongoDbMode to MongoMode.01:44
yangyapenghi zengchen01:56
yangyapengping zengchen01:57
zengchenyangyapeng:hello01:57
yangyapengHI zengchen01:57
yangyapengI see it , this is a bug .01:57
yangyapengif you can report a bug to fix it ?01:58
zengchenyangyapeng:ok, i will fix it.01:58
yangyapengOK. thank you , report a bug https://bugs.launchpad.net/freezer01:59
*** Marcel_ has quit IRC02:45
zengchenyangyapeng: ping03:20
zengchenis it a bug for the following codes on the 'instance = nova.servers.get(instance)', the argument should be the instance_id.03:23
zengchen    def backup_nova(self, instance_id):03:23
zengchen        """03:23
zengchen        Implement nova backup03:23
zengchen        :param instance_id: Id of the instance for backup03:23
zengchen        :return:03:23
zengchen        """03:23
zengchen        instance_id = instance_id03:23
zengchen        client_manager = self.client_manager03:23
zengchen        nova = client_manager.get_nova()03:23
zengchen        instance = nova.servers.get(instance_id)03:23
zengchen        glance = client_manager.get_glance()03:23
zengchen        if instance.__dict__['OS-EXT-STS:task_state']:03:23
zengchen            time.sleep(5)03:23
zengchen            instance = nova.servers.get(instance)03:23
zengchenthe last line.03:23
zengchenthe bug is on the last line.03:24
yangyapeng?03:26
yangyapenginstance_id is a str03:31
zengchenyangyapeng:hi , you can see the codes above.03:31
yangyapengbut instance is nova instance.id .03:32
yangyapengthis shoud use instance03:32
zengchenyangyapeng:yes, the argument for  nova.servers.get should be the instance id.03:33
zengchenyangyapeng:but the instance is passed to it at last line.03:33
openstackgerritzengchen proposed openstack/freezer: Fix the failure of loading the instance of MongoDbMode  https://review.openstack.org/32621903:57
*** lpetrut has joined #openstack-freezer05:18
yangyapengping  zengchen05:21
yangyapengzengchen:05:21
zengchenyangyapeng:ping06:05
*** lpetrut has quit IRC06:08
zengchenyangyapeng:please, review the bug. thanks.https://review.openstack.org/32621906:11
yangyapengping zengchen06:14
zengchenyangyapeng:hi, good afternoon.06:14
yangyapenggood afternoon . this patch is good.06:15
zengchenyangyapeng:thanks.06:16
zengchenyangyapeng:about the instance = nova.servers.get(instance), can you expain it again? thanks.06:17
yangyapengin novaclinet  , ServerManager def get ()06:21
yangyapengserver shoud be  obj06:22
yangyapengwait06:23
yangyapeng 38 def getid(obj):06:23
yangyapeng 39     """Get object's ID or object.06:23
yangyapeng 4006:23
yangyapeng 41     Abstracts the common pattern of allowing both an object or an object's ID06:23
yangyapeng 42     as a parameter when dealing with relationships.06:23
yangyapeng 43     """06:23
yangyapeng 44     try:06:24
yangyapeng 45         return obj.id06:24
yangyapeng 46     except AttributeError:06:24
yangyapeng 47         return obj06:24
yangyapengabut it ,instance or instance_id , it shoud be  ok  always, but instance shoud be better.06:24
yangyapenginstance.id is true , but instnace_id have not the attribute id06:25
zengchenyangyapeng:ok, i will check it again. thank you.06:26
yangyapeng:)06:26
yangyapenghttps://github.com/openstack/python-novaclient/blob/master/novaclient/base.py#L3806:28
*** yuval has joined #openstack-freezer06:36
*** saggi has joined #openstack-freezer07:09
*** saggi has quit IRC07:59
*** saggi has joined #openstack-freezer08:00
*** electrofelix has joined #openstack-freezer09:03
*** lpetrut has joined #openstack-freezer10:07
*** yangyapeng has quit IRC10:16
*** yangyapeng has joined #openstack-freezer11:51
openstackgerritDeklan Dieterly proposed openstack/freezer-api: Fix RST syntax in tempest tests README  https://review.openstack.org/32615712:06
*** zengchen has quit IRC12:21
*** EinstCrazy has quit IRC12:41
*** EinstCrazy has joined #openstack-freezer12:41
*** EinstCrazy has quit IRC12:46
openstackgerritDomhnall Walsh proposed openstack/freezer-api: Update behaviour for deleting actions in Freezer API  https://review.openstack.org/32647113:47
openstackgerritJonas Pfannschmidt proposed openstack/freezer: WIP: First scenario test  https://review.openstack.org/32059114:21
*** Marcel_ has joined #openstack-freezer14:22
*** Marcel_ has quit IRC14:36
*** yuval has quit IRC14:37
*** Marcel_ has joined #openstack-freezer14:51
*** yuval has joined #openstack-freezer14:53
gahanis the above bug related to saving nova instances to local drive ?15:02
*** Marcel_ has quit IRC15:18
*** yuval_ has joined #openstack-freezer15:29
*** yuval has quit IRC15:29
*** yuval_ is now known as yuval15:29
*** saggi has quit IRC16:08
*** yuval has quit IRC16:09
openstackgerritJonas Pfannschmidt proposed openstack/freezer: WIP: First scenario test  https://review.openstack.org/32059116:10
*** Marcel_ has joined #openstack-freezer16:18
*** Marcel_ is now known as Marcellin16:23
*** saggi has joined #openstack-freezer16:33
*** saggi has quit IRC16:49
*** lpetrut has quit IRC17:01
*** timothyb89 has quit IRC17:07
*** timothyb89 has joined #openstack-freezer17:09
*** electrofelix has quit IRC18:02
*** lpetrut has joined #openstack-freezer18:34
*** clenimar has joined #openstack-freezer20:04
*** saggi has joined #openstack-freezer20:29
*** saggi has quit IRC21:00
*** clenimar has quit IRC21:02
*** lpetrut has quit IRC21:17
*** fawadkhaliq has joined #openstack-freezer22:28
*** fawadkhaliq has quit IRC23:37
*** clenimar has joined #openstack-freezer23:49

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!