These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
VISIT OUR DIFFERENT FORUMS:
Announcements > | |
CloudShell > | TestShell > |
Developers > | BI (Business Inteligence) > |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide > | Configuration Management > |
Getting started with Shells > | Extending CloudShell with Cloud Providers > |
Getting started with Orchestration > | API Guide > |
To share your integration, follow the instructions in this guide >.
Hello All,
I have created a shell that makes a ssh connection with a machine and execute some commands. For that, I used the python Paramiko library. The shell's project compiled fine, and the script that uses the paramiko's functions works. I have installed the paramiko module (using pip) in the machine.
I can install succesfully the shell on CloudShell (using shellfoundry install), but I get the following error everytime I try to create the instance of that shell resource in the inventory (discovery process):
"Discovery failed for resource 'shell1': 'get_inventory' command failed with 'General Exection' error. Descriptionm: Failed to start execution: Unexpected error -Python unhandled exception was raised while involking server method 'LoadDriver' 'No module named paramiko'..."
Do anyone have an idea/feedback on how I can solve this problem?
Thanks a lot in advance,
Veronica
Answer by Yaniv Kalsky · Jun 25, 2018 at 04:48 PM
Hi @veronica.rivas@mantica-solutions.com
When you use an external package with your shell, you need to add it to the requirements.txt file that is in your project. This way, when the driver is being executed for the first time, a new virtual environment is created for it, and all the external requirements are being installed there.
Make sure you add a certain version of paramiko (and any other package), to reduce the chances of your driver fail to run because of an update made by these packages.
So use something like:
paramiko==2.4.1
or
paramiko>=2.4,<2.5
you can check which paramiko you installed and that was working fine for you using "pip list".
Yaniv
Answer by Veronica Rivas · Jun 25, 2018 at 09:20 PM
Hi Yaniv.K,
Thank you so much for your help. I really appreciate that.
You are right. Now it works!!! =)
These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
Announcements | |
CloudShell | TestShell |
Developers | BI (Business Inteligence) |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide | Configuration Management |
Getting started with Shells | Extending CloudShell with Cloud Providers |
Getting started with Orchestration | API Guide |
To share your integration, follow the instructions in this guide.
Cloudshell Common Calls in a library 1 Answer
driver targeting different CloudShell version 3 Answers
Shell for CloudShell authoring driver 1 Answer
How to retrieve QualiServer details from python code? 5 Answers
Upload resource driver - error message: 'Object reference not set to an instance of an object' 1 Answer