And hello again, 

FYI: 
I reverted to using my older elasticluster version 1.3.dev0
And with a combination of
paramiko 2.1.2
cryptography 2.6.1

It is now running. 

It might also work with the newest version of paramiko, but I have not 
tried that yet. 

Maiken


On Tuesday, May 7, 2019 at 9:46:26 AM UTC+2, Maiken Pedersen wrote:
>
> Hi, 
>
> I am for the first time trying the resize option in elasticluster. 
>
> I got a new elasticluster from github today. 
>
> This is the only template I have
>
>
>
> (elasticluster_07052019)[centos@elasticluster-final ~]$ elasticluster list
> -templates
> 1 cluster templates found in configuration file.
> 2019-05-07 09:42:19 elasticluster-final.novalocal gc3.elasticluster[23614] 
> WARNING ImportWarning: Not importing directory 
> '/usr/lib/python2.7/site-packages/oslo_i18n/locale': missing __init__.py
> 2019-05-07 09:42:19 elasticluster-final.novalocal gc3.elasticluster[23614] 
> WARNING ImportWarning: Not importing directory 
> '/usr/lib/python2.7/site-packages/babel/localedata': missing __init__.py
> 2019-05-07 09:42:19 elasticluster-final.novalocal gc3.elasticluster[23614] 
> WARNING ImportWarning: Not importing directory 
> '/usr/lib/python2.7/site-packages/requests/packages': missing __init__.py
>
> name:     slurm
> frontend nodes: 1
> compute nodes: 7
>
>
> And this is what I get if I try to expand with 2 compute nodes 
>
> 1) is it correct to use "compute" to name the group - I am not sure if I 
> should chose compute_node which is what I have in my configuration file, or 
> compute or slurm_worker that I see in my inventory file
> 2) What is the error below due to? 
>
> (elasticluster_07052019)[centos@elasticluster-final ~]$ elasticluster 
> resize -a 2:compute arc6_singularity -t slurm
> 2019-05-07 09:39:47 elasticluster-final.novalocal gc3.elasticluster[23590] 
> WARNING ImportWarning: Not importing directory 
> '/usr/lib/python2.7/site-packages/oslo_i18n/locale': missing __init__.py
> 2019-05-07 09:39:47 elasticluster-final.novalocal gc3.elasticluster[23590] 
> WARNING ImportWarning: Not importing directory 
> '/usr/lib/python2.7/site-packages/babel/localedata': missing __init__.py
> 2019-05-07 09:39:47 elasticluster-final.novalocal gc3.elasticluster[23590] 
> WARNING ImportWarning: Not importing directory 
> '/usr/lib/python2.7/site-packages/requests/packages': missing __init__.py
> Adding 2 compute node(s) to the cluster
> 2019-05-07 09:39:48 elasticluster-final.novalocal gc3.elasticluster[23590] 
> ERROR Could not start node `compute003`: from_buffer() cannot return the 
> address of the raw string within a str or unicode or bytearray object -- 
> <type 
> 'exceptions.TypeError'>
> Traceback (most recent call last):
>   File "/home/centos/elasticluster_07052019/src/elasticluster/cluster.py", 
> line 580, in _start_node
>     node.start()
>   File "/home/centos/elasticluster_07052019/src/elasticluster/cluster.py", 
> line 1318, in start
>     **self.extra)
>   File 
> "/home/centos/elasticluster_07052019/src/elasticluster/providers/openstack.py"
> , line 471, in start_instance
>     self._check_keypair(key_name, public_key_path, private_key_path)
>   File 
> "/home/centos/elasticluster_07052019/src/elasticluster/providers/openstack.py"
> , line 679, in _check_keypair
>     pkey = RSAKey.from_private_key_file(private_key_path)
>   File "/usr/lib/python2.7/site-packages/paramiko/pkey.py", line 196, in 
> from_private_key_file
>     key = cls(filename=filename, password=password)
>   File "/usr/lib/python2.7/site-packages/paramiko/rsakey.py", line 45, in 
> __init__
>     self._from_private_key_file(filename, password)
>   File "/usr/lib/python2.7/site-packages/paramiko/rsakey.py", line 164, in 
> _from_private_key_file
>     self._decode_key(data)
>   File "/usr/lib/python2.7/site-packages/paramiko/rsakey.py", line 173, in 
> _decode_key
>     data, password=None, backend=default_backend()
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/serialization/base.py"
> , line 28, in load_der_private_key
>     return backend.load_der_private_key(data, password)
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py"
> , line 1089, in load_der_private_key
>     bio_data = self._bytes_to_bio(data)
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py"
> , line 462, in _bytes_to_bio
>     data_ptr = self._ffi.from_buffer(data)
> TypeError: from_buffer() cannot return the address of the raw string 
> within a str or unicode or bytearray object
> 2019-05-07 09:39:48 elasticluster-final.novalocal gc3.elasticluster[23590] 
> ERROR Could not start node `compute004`: from_buffer() cannot return the 
> address of the raw string within a str or unicode or bytearray object -- 
> <type 
> 'exceptions.TypeError'>
> Traceback (most recent call last):
>   File "/home/centos/elasticluster_07052019/src/elasticluster/cluster.py", 
> line 580, in _start_node
>     node.start()
>   File "/home/centos/elasticluster_07052019/src/elasticluster/cluster.py", 
> line 1318, in start
>     **self.extra)
>   File 
> "/home/centos/elasticluster_07052019/src/elasticluster/providers/openstack.py"
> , line 471, in start_instance
>     self._check_keypair(key_name, public_key_path, private_key_path)
>   File 
> "/home/centos/elasticluster_07052019/src/elasticluster/providers/openstack.py"
> , line 679, in _check_keypair
>     pkey = RSAKey.from_private_key_file(private_key_path)
>   File "/usr/lib/python2.7/site-packages/paramiko/pkey.py", line 196, in 
> from_private_key_file
>     key = cls(filename=filename, password=password)
>   File "/usr/lib/python2.7/site-packages/paramiko/rsakey.py", line 45, in 
> __init__
>     self._from_private_key_file(filename, password)
>   File "/usr/lib/python2.7/site-packages/paramiko/rsakey.py", line 164, in 
> _from_private_key_file
>     self._decode_key(data)
>   File "/usr/lib/python2.7/site-packages/paramiko/rsakey.py", line 173, in 
> _decode_key
>     data, password=None, backend=default_backend()
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/serialization/base.py"
> , line 28, in load_der_private_key
>     return backend.load_der_private_key(data, password)
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py"
> , line 1089, in load_der_private_key
>     bio_data = self._bytes_to_bio(data)
>   File 
> "/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py"
> , line 462, in _bytes_to_bio
>     data_ptr = self._ffi.from_buffer(data)
> TypeError: from_buffer() cannot return the address of the raw string 
> within a str or unicode or bytearray object
> 2019-05-07 09:39:51 elasticluster-final.novalocal gc3.elasticluster[23590] 
> WARNING CryptographyDeprecationWarning: signer and verifier have been 
> deprecated. Please use sign and verify instead.
> No handlers could be found for logger "paramiko.transport"
> 2019-05-07 09:39:51 elasticluster-final.novalocal gc3.elasticluster[23590] 
> ERROR Error: from_buffer() cannot return the address of the raw string 
> within a str or unicode or bytearray object
> Aborting because of errors: from_buffer() cannot return the address of 
> the raw string within a str or unicode or bytearray object.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticluster" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticluster/38e334ea-654b-4aab-a8f6-dca32316eb6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to