*** openstack has joined #openstack-valence | 20:30 | |
ntpttr | hey lin_yang, I just raised this question on your compose node patch, but where do you think we should be getting the power state of a composed node from?4 | 22:43 |
---|---|---|
ntpttr | there's PowerState, but also ComposedNodeState | 22:43 |
ntpttr | power state is on after allocation, but it'll say ComposedNodeState: PoweredOff until you hit it with the patch request to power on | 22:43 |
ntpttr | right now we're getting the info from PowerState, so the nodes are displaying as on when their composednodestate is still poweredoff | 22:44 |
lin_yang | I think PowerState will only be Poweron/off, or poweringOn/Off, ComposedNodeState will show more status like Allocated/Assembling | 22:50 |
lin_yang | Because we combine allocate and assemble into one step, so after compose, ComposedNodeState will be PowerOff | 22:51 |
lin_yang | I will check the status inconsistent, may be caused by simulator | 22:51 |
ntpttr | yeah maybe it is the simulator.. | 23:10 |
ntpttr | but it seems odd | 23:10 |
lin_yang | I cannot access the RSD hardware right now, will check it later | 23:11 |
ntpttr | sure, np | 23:16 |
openstackgerrit | Lin Yang proposed openstack/valence: Align api /nodes with api-ref spec https://review.openstack.org/418657 | 23:16 |
ntpttr | I'll go check the API spec and see if they document the difference between those two values, so we can figure out which we should care about | 23:17 |
lin_yang | thanks :) | 23:17 |
ntpttr | okay the documentation doesn't really clear things up I'm afraid | 23:18 |
ntpttr | PowerState is the current power state for the node obviously, so it seems like that's what we should go with | 23:19 |
ntpttr | and composed node state is the current assembly process | 23:19 |
ntpttr | but composed node state can be PoweredOff as well as PoweredOn, which it says mean 'node successfully assembled and powered on' | 23:19 |
ntpttr | perhaps PowerState is just for the underlying system, wheras composed node state has to do with the assembled node being powered on and useable as the node itsel | 23:20 |
lin_yang | it's confusing to me if it implement by designed in this way | 23:21 |
ntpttr | me too. Maybe Priyank or someone from the pod manager side would know | 23:22 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!