-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] TypeError: __init__() takes 1 positional argument but 2 were given #143
Comments
Hi @wuwei3, you are passing the right arguments I just tested it, but I cannot get the error, can you paste the content of the kvm_fdu.json file? Because the error is in the FDU object creation |
Thanks, from what I can see you are using a wrong descriptor, the last update modified a little bit the descriptor format
Can you also check if you have the fog05-im python package installed?
Also I see that you are using a .tag.gz image with a KVM hypervisor, I think it will not work, as tipically KVM accepts image formats not compressed one, are you sure it is a KVM image and not an LXD one? |
Ok, just to be sure do a
If you do not have installed in the node the plugin for LXD or KVM it will not be able to instantiate the FDU. In order to install the LXD plugin (for instance...)
and then edit the `/etc/fos/plugins/LXD/LXD_plugin.json" file with the correct nodeid |
Yes, you will have that error, in this case you can use another image, like one coming from the LXD repositiory, just using this portion as image:
it will fetch the image from the LXD repository |
For the
You mean, this one could be run normally? I tried, it was the same error above. Could you help me for how to get one image from remote? I mean, with the correct uri which could be run correctly. Thanks |
And I got another problme, I executed the script files in ubuntu 16:
but, if I execute the 'lxc list', got error: But I get no problem in ubuntu14, I don't know why, the different is I used 'Start Eclipse fog05 FIM by hand' in ubuntu 14, used the 'Start Eclipse fog05 FIM using systemd' in ubuntu 16. |
All the fog05 components runs under a user called fos, that should be able to access the LXD daemon, so it should be part of the lxd group. Can you try to run:
If you get a connection error this means that you have to add the user to the lxd group
|
@wuwei3 can you also paste the output of the LXD plugin? I'm wondering if for some reason it is unable to get the image from the LXD repo |
@gabrik Hello, wuwei3 and me work together. And I tried to run the LXD plugin by hand in ubuntu 16 (the other 4 YAKS, Agent, Linux and Linux-bridge have been run succesully): |
@gabrik And if i trt to run those plugins using Systemctl i met an error: sudo ./etc/systemd/enable.sh |
Hi @zrnapoleon, This seems a misconfiguration of the LXD daemon, because for some reason the plugin is unable to contact the running daemon.
|
Hi @gabrik, I did just as you recommended but still cant enable those plugins: |
before starting the LXD plugin can you run:
Then please verify if there is something listening on port 8443 using
If yes, please verify that the fos uses is inside the lxd group
|
Hi @gabrik, sudo netstat -tlpn cd fos-plugins/LXD/ |
Ok, I see, the problem is that LXD it is not listening on port 8443, so the plugin is not able to connect. Can you check if it is actually running:
And then verify that the python3 client is working:
Please paste any error you get Then try by deletting
And paste the output |
Ok, I see, can you try to reinstall the pylxd client.
Then probably there is a missing package for python api, which I need to fix the make file So from the fog05 repo directory
And then verify the operativity of the lxd plugin |
Hi @zrnapoleon, I guess you have to install pyang
And then the same steps as before to install the python package, you do not need sudo during
|
I see, can you do a I guess there is some file with wrong permission due to the previous usage of |
This is strange, I think you have the You should get something like this:
|
In this case I think there is something strange in the path used by python to resolve the modules. |
I see, and if you run Because I think that they are using two different path for python modules and so it cannot find the correct module |
I see. |
Ok then in this case we can check if the pyangbind is installed in that path |
Ok, I think we can try to solve this by running this:
Then it should be able to install in the right path, I still do not understand why it is installed in the user python path and not system-wide |
Ok then, remove it and reinstall it.
I do not know if there is a way to force pip to install system-wide, usually install with sudo should make pip aware of the usage of system-wide path Edit: The |
Hi @gabrik , Thanks for your help and it seams that i have sucessfully started the lxd plugin: |
Hi @zrnapoleon Can you check which lxc client is ubuntu using?
Or you can try with |
Ok then you have to remove the old client in order to use the one shiped by snap
and now with But just for your infomation it is not an issue if fos user cannot do |
This things drive me crazy... Can you try a reboot on the node that is not working and then run |
I rebooted the node then it solved. @gabrik Thank you very much for your patience and detailed explanation. |
You are welcome! |
@gabrik one more question: i dont know why each time i reboot my node, the yaksd service will start automaticlly, if i dont kill the ps, i cant do "yaksd -vv" to start the yaksd plugin manually: |
@zrnapoleon the You can run
To disable this behaviour, then you can start it manually or using the script To verify that error I guess you can run
And copy the output so we can verify why is going in error |
I see no errors in the output, I can also see output coming from yaksd so, I guess we can ignore that |
Ok, thanks! Ithink we can close this issue and in case of other questions we can open other one. |
Describe the bug
I copied the https://github.com/atolab/fog05_demo/blob/master/fim_api/lifecycle_nonetwork.py
and execute the file, pass the params, but get the error:
Did I pass the wrong params?
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: