Ask Your Question

najeh's profile - activity

2018-12-15 05:53:35 -0600 commented answer Access to openstack instance using python sdk

But for the openstack instance i couldn't access i think because i created without a password

the message error is: paramiko.ssh_exception.SSHException: No authentication methods available

2018-12-15 04:25:30 -0600 commented answer Access to openstack instance using python sdk

@Bernd Bausch This the last line of above code.

I tried the code to connect to the controller and this the result Linux controller 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux <paramiko.client.sshclient object="" at="" 0x7f584453b550="">

am i connected now

2018-12-15 01:55:55 -0600 received badge  Famous Question (source)
2018-12-14 15:17:10 -0600 asked a question Manage docker containers inside openstack instances via python API

After docker installation inside openstack instance and creation of conatiners and deployment of a system inside the container.

I need to manage docker containers resides on the openstack instance. But i don't know how can process that.

I installed docker library and i tried to access the instance using python API using this code:

import paramiko, sys, getpass

hostname = '192.168.x.x'

username = 'ubuntu'

password = 'password'

ssh = paramiko.SSHClient()

ssh.connect(hostname=hostname, username=username, password=password)

I failed to connect to the instance

How can i resolv this ?

2018-12-14 15:16:05 -0600 commented answer Access to openstack instance using python sdk

I tried to access to instance using paramika python library but i failed.

Have you any other suggestion?

2018-12-14 13:32:33 -0600 received badge  Notable Question (source)
2018-12-14 08:31:01 -0600 received badge  Popular Question (source)
2018-12-14 07:45:42 -0600 received badge  Citizen Patrol (source)
2018-12-14 06:05:19 -0600 asked a question Access to openstack instance using python sdk

How can i access to openstack instances using python sdk?

import paramiko

def runSshCmd(hostname, username, password, cmd, timeout=None):

client = paramiko.SSHClient()

client.set_missing_host_key_policy(paramiko.AutoAddPolicy())

client.connect(hostname, username=username, password=password,
        allow_agent=False, look_for_keys=False, timeout=timeout)

stdin, stdout, stderr = client.exec_command(cmd)

data = stdout.read()

print data

print client

client.close()

runSshCmd("192.168.x.x", "controller", "mypass", "uname -a")

2018-12-13 10:08:03 -0600 received badge  Popular Question (source)
2018-12-13 04:49:59 -0600 commented answer Openstack private cloud

my nodes are not connected using a physical switch. I think they are connected with virtual switches.

If i am using a switch, should i change anything in the OpenStack configuration (e.g., mangement interface, provider interface, etc) ?

2018-12-13 03:52:30 -0600 asked a question Openstack private cloud

Is it obligatory to connects nodes with a switch to build the private cloud with OpenStack ?

Can i associate a floating ip to my instance launched on the provider network ?

2018-12-13 03:17:23 -0600 received badge  Famous Question (source)
2018-12-11 16:51:42 -0600 received badge  Notable Question (source)
2018-12-11 14:05:01 -0600 received badge  Notable Question (source)
2018-12-11 09:20:48 -0600 received badge  Popular Question (source)
2018-12-11 09:17:19 -0600 commented answer can't ssh an instance

I acces to the instance and after a few time i lose this access and i can't ping the instance address. Where is the problem ?

and show this error

ssh: connect to host 192.168.x.x port 22: Connection refused

2018-12-11 08:25:51 -0600 commented answer can't ssh an instance

Thanks this solve my issue, the mykey.pem will be the same for all instances ?

2018-12-11 07:43:34 -0600 commented answer can't ssh an instance

@novainfinite how can i do this ?

2018-12-11 06:34:19 -0600 received badge  Popular Question (source)
2018-12-11 06:17:39 -0600 asked a question can't ssh an instance

i use a ubuntu 18.04 image to launch the instance, but after the launching i cannot ssh this instance and an error is displyed

ssh ubuntu@192.168.x.x

ubuntu@192.168.x.x: Permission denied (publickey).

what can i do ?

2018-12-11 04:43:33 -0600 received badge  Famous Question (source)
2018-12-11 04:40:13 -0600 commented answer Docker with openstack

Thank you, i want to run Docker on instances and deploy the system inside the instance using docker container, so the instance should be created with important flavor(ram, cpu, hard disk) to provide the docker installation requirements ?

2018-12-11 02:45:27 -0600 asked a question Docker with openstack

To deploy systems/applications inside openstack instances using docker container. should i install docker on the instance or on the computing host ? and how?

2018-12-11 01:44:33 -0600 received badge  Notable Question (source)
2018-12-10 09:41:16 -0600 received badge  Notable Question (source)
2018-12-10 09:40:23 -0600 commented answer Deploy a system under an openstack instance

how can i access a deployed system/application if i'am using networking option 1 without a floating ip ?

2018-12-10 09:39:36 -0600 received badge  Popular Question (source)
2018-12-10 06:58:07 -0600 commented answer Deploy a system under an openstack instance

the system i would like to deploy inside the openstack instance is a management system. how user data or heat can be used to proceed this deployment ?

2018-12-10 05:40:56 -0600 asked a question Deploy a system under an openstack instance

After launching of an openstack instance. Can i deploy a system inside the launched instance? If yes, how can i do this ?

2018-12-10 00:06:44 -0600 received badge  Popular Question (source)
2018-12-09 23:02:32 -0600 received badge  Notable Question (source)