Closed Bischoff closed 9 months ago
reasonable request to me , we will check with folks and see whether it's an old bug or regression introduced recently
https://github.com/openmainframeproject/feilong/blob/master/zvmsdk/vmops.py#L112 this has (int) force but this doesn't https://github.com/openmainframeproject/feilong/blob/master/zvmsdk/vmops.py#L136
can you add (int) in front of line 136 and see whether it fix the problem?
@Bischoff Was the guest in power off state? when getting the info.
Thanks for the quick replies.
| can you add (int) in front of line 136 and see whether it fix the problem?
I will ask to the person who deployed the Feilong instance, I currently do not have access to this machine. I will get back to you.
| @Bischoff Was the guest in power off state? when getting the info.
Yes, it was powered off. I will check what happens if I power it on.
@bjhuangr Indeed, after the guest is powered on, I get an integer as expected.
@jichenjc Indeed, after I add int()
on line 136, the issue is solved
I don't manage to push to gerrit:
! [remote rejected] get-guest-info-max-mem-kb-type -> get-guest-info-max-mem-kb-type (prohibited by Gerrit: not permitted: create)
despite my remote is correct:
ebischoff@kool:~/SCM/github/Bischoff/feilong> git remote -v
gerrit ssh://Bischoff@review.gerrithub.io:29418/openmainframeproject/python-zvm-sdk (fetch)
gerrit ssh://Bischoff@review.gerrithub.io:29418/openmainframeproject/python-zvm-sdk (push)
(...)
I'm sorry but I cannot create the PR.
@Bischoff thanks for attempting to submit a PR to fix this. If the gerrit process not work for you, you can just submit the PR with general github process - like you did https://github.com/openmainframeproject/feilong/pull/768, you can just reopen it.
ok, doing that, thanks @bjhuangr .
Merge please? ...
Thank you.
What happens
According to the Feilong 1.6.5 documentation:
However Feilong returns value
4194304.0
, which is not an integer, but a floating point number, in case of a maximum memory of 4 GiB.This produces an error when you try to unmarshal that value.
What should happen
GetGuestInfo()
should return an integer for fieldmax_mem_kb
.The other field
mem_kb
is an integer as expected.