Giter Club home page Giter Club logo

Comments (12)

micafer avatar micafer commented on July 28, 2024

hi @BorjaEst,

Could you send what are the credentials that have you set in the im-web portal?

from im-web.

BorjaEst avatar BorjaEst commented on July 28, 2024

Sure:

This is the log file:

:: Contextualization Log ::

2020-04-01 12:33:40.276600: All VMs failed. No contextualize.
2020-04-01 12:33:40.280091: Error launching the VMs of type simple_node to cloud ID CESGA of type OpenStack. Error, no concrete system to deploy: simple_node in cloud: CESGA. Check if a correct image is being used

VM 0:
Error launching the VMs of type simple_node to cloud ID CESGA of type OpenStack. Error, no concrete system to deploy: simple_node in cloud: CESGA. Check if a correct image is being used

During the launch phase
The error was probably that the image was not correct and in the host definition here;

from im-web.

micafer avatar micafer commented on July 28, 2024

The problem seems to be related with the image.
Adding /v3 to the url of the host is not a problem as IM ignores it.
In the creation you do not get the libcloud error as the IM is not even trying to create any VM.
In the deletion process it tries to connect to the provider to assure that there is not resource to delete and in this point it is failing with the libcloud error.

What IM service version are you using, and if it is possible what libcloud version.

from im-web.

BorjaEst avatar BorjaEst commented on July 28, 2024

I am using the container (1.5.13, latest (Dockerfile))
https://github.com/grycap/im-web/blob/v1.5.13/docker/Dockerfile

im-web:
    image: grycap/im-web

For the libcloud, seem it is not installed:

$ docker exec im-web python -c "import libcloud ; print libcloud.__version__"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named libcloud
$ docker exec im-web libcloud -v
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"libcloud\": executable file not found in $PATH": unknown

from im-web.

micafer avatar micafer commented on July 28, 2024

I refer to the IM service, not the IM web portal.

from im-web.

BorjaEst avatar BorjaEst commented on July 28, 2024

Sorry:

  im:
    image: grycap/im:1.9.1
$ docker exec im libcloud -v
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"libcloud\": executable file not found in $PATH": unknown

$ docker exec im python -c "import libcloud ; print libcloud.__version__"
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"python\": executable file not found in $PATH": unknown

$ docker exec im python3 -c "import libcloud ; print libcloud.__version__"
  File "<string>", line 1
    import libcloud ; print libcloud.__version__
                                   ^
SyntaxError: invalid syntax

from im-web.

micafer avatar micafer commented on July 28, 2024

HI @BorjaEst,

Could try to restart the IM service (not the IM web portal (and try to delete the infras).

If you set a correct image, for example this one:

'appdb://CESGA/egi.docker.ubuntu.16.04s?eosc-synergy.eu'

The VM creation works?

from im-web.

BorjaEst avatar BorjaEst commented on July 28, 2024

Hi @micafer,
Restart the IM service does not help (my data is persistent in a local folder).
However, if the image is correct, the instance is correctly deployed 👍 (I tried using ost:/server).

fce527f2-77f4-11ea-8f67-0242ac110003 0 Show Show unconfigured      

The "unconfigured" is because I still need to fix something else:

2020-04-06 10:58:08.871570: Select master VM
2020-04-06 10:58:08.872569: Contextualization Error: No correct Master VM found. Check if there a linux VM with Public IP.
2020-04-06 10:58:08.922163: Error in the ansible installation process: No master VM found.
2020-04-06 10:58:13.925544: Error in the ansible installation process: No master VM found.
2020-04-06 10:58:33.931975: Error in the ansible installation process: No master VM found.

from im-web.

micafer avatar micafer commented on July 28, 2024

Hi @BorjaEst ,

I assume that your data is persistent, but restarting the IM clean some in memory data that I wanted to assure that is not the origin of your problem.
So now that is restarted:

  • Have you tried to delete the incorrect infrastructures?
  • Did you get the same error?

Regarding the unconfigured state.
Could you send me the information about the launched VM provided by the IM portal?

from im-web.

BorjaEst avatar BorjaEst commented on July 28, 2024

Hi @micafer,
Yes, I tried, but I get the same error:

Error: Error: Code: 400. Error Destroying Inf: Error destroying the infrastructure:
No auth data has been specified to OpenStack.

Regarding the unconfigured state:
The provided outputs:


Outputs
| node_ipnode_credsuser = cloudadmtoken_type = private_keytoken = -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- 
| node_ip |   
| node_creds 
| user = cloudadmtoken_type = private_keytoken = -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY-----

-- | -- | -- | -- | -- | --
node_ip |  
node_creds 
| user = cloudadmtoken_type = private_keytoken = -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY-----

The tosca template:

tosca_definitions_version: tosca_simple_yaml_1_0

imports:
  - indigo_custom_types: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/custom_types.yaml

description: >
  Launch a compute node getting the IP and SSH credentials to access via ssh
metadata:
  display_name: Start a virtual machine
  icon: https://indigo-paas.cloud.ba.infn.it/public/images/vm-icon.png

topology_template:

  node_templates:

    simple_node:
      type: tosca.nodes.indigo.Compute
      capabilities:
        endpoint:
          properties:
            network_name: net-eosc-synergy.eu
        scalable:
          properties:
            count: 1
        host:
          properties:
            instance_type: cor1mem1hd10
        os:
          properties:
            image: ost://fedcloud-osservices.egi.cesga.es:9292/0fb385b2-f4a5-4a4f-8058-f21d4e78b7fa

  outputs:
    node_ip:
      value: { get_attribute: [ simple_node, public_address, 0 ] }
    node_creds:
      value: { get_attribute: [ simple_node, endpoint, credential, 0 ] }

from im-web.

micafer avatar micafer commented on July 28, 2024

Hi @BorjaEst ,

the error

Error: Error: Code: 400. Error Destroying Inf: Error destroying the infrastructure:
No auth data has been specified to OpenStack.

Means that you have not provided any OpenStack auth to the site where the infras was deployed.

And can you provide me the VM info? Click on the "0" ID that should appear in the second column (titled "VM IDs").

from im-web.

BorjaEst avatar BorjaEst commented on July 28, 2024

Hi, sorry but I tried to reproduce the error again but I was not able.

from im-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.