Molecule login failling for the molecule gce driver

hello !

I’m getting the following error when running molecule login. Does anyone know why that would be the case?

molecule --debug login -s node-exporter-gce-vm --host molecule-node-exporter-gce-vm-1-REDACTED
INFO     Found config file /REDACTED/.config/molecule/config.yml
DEBUG    Validating schema /REDACTED/Ansible/Collections/Services/prometheus/tests/roles/molecule/blackbox-exporter-gce-vm/molecule.yml.
WARNING  Driver gce does not provide a schema.
DEBUG    Validating schema /REDACTED/Ansible/Collections/Services/prometheus/tests/roles/molecule/node-exporter-gce-vm/molecule.yml.
WARNING  Driver gce does not provide a schema.
DEBUG    Inventory /REDACTED/Ansible/Collections/Services/prometheus/tests/roles/molecule/node-exporter-gce-vm/../../../../dynamic-inventories/gitlab_molecule_inventory.py linked to /REDACTED/.cache/molecule/roles/node-exporter-gce-vm/inventory/hosts
INFO     Running node-exporter-gce-vm > login
Bad port '{port}'

My compiled molecule.yml

~/.cache/molecule/roles/node-exporter-gce-vm/molecule.yml 
# Molecule managed

---
dependency:
  command: null
  enabled: true
  env: {}
  name: galaxy
  options:
    requirements-file: ../../collections/requirements.yml
driver:
  auth_kind: application
  external_access: false
  instance_os_type: linux
  name: gce
  network_name: REDACTED
  options:
    managed: true
  project_id: REDACTED
  provider:
    name: null
  region: us-east1
  safe_files: []
  ssh_connection_options: []
  subnetwork_name: REDACTED
  vpc_host_project: REDACTED
platforms:
  - disk_size_gb: 50
    image: REDACTED
    machine_type: n2-standard-2
    name: REDACTED-1
    preemptible: false
  - disk_size_gb: 50
    image: REDACTED
    machine_type: n2-standard-2
    name: REDACTED-2
    preemptible: false
prerun: true
provisioner:
  ansible_args: []
  children: {}
  config_options:
    defaults:
      inject_facts_as_vars: false
  connection_options: {}
  env: {}
  inventory:
    group_vars: {}
    host_vars: {}
    hosts: {}
    links:
      hosts: ../../../../dynamic-inventories/gitlab_molecule_inventory.py
  log: true
  name: ansible
  options: {}
  playbooks:
    cleanup: cleanup.yml
    converge: converge.yml
    create: create.yml
    destroy: destroy.yml
    prepare: prepare.yml
    side_effect: side_effect.yml
    verify: verify.yml
role_name_check: 0
scenario:
  check_sequence:
    - dependency
    - cleanup
    - destroy
    - create
    - prepare
    - converge
    - check
    - cleanup
    - destroy
  cleanup_sequence:
    - cleanup
  converge_sequence:
    - dependency
    - create
    - prepare
    - converge
  create_sequence:
    - dependency
    - create
    - prepare
  destroy_sequence:
    - dependency
    - cleanup
    - destroy
  idempotence_sequence:
    - dependency
    - idempotence
  name: node-exporter-gce-vm
  test_sequence:
    - dependency
    - cleanup
    - destroy
    - syntax
    - create
    - prepare
    - converge
    - idempotence
    - side_effect
    - verify
    - cleanup
    - destroy
verifier:
  additional_files_or_dirs: []
  directory: controls
  enabled: true
  env:
    ANSIBLE_REMOTE_USER: REDACTED
  name: testinfra
  options:
    ansible-inventory: REDACTED
    confcutdir: REDACTED
    ssh-identity-file: REDACTED

This is a bug in the driver fixed months ago but for some reason there has been no new release of the molecule_drivers. You can fix it as was done here:

2 Likes