Skip to content

Kitchen fails to ssh to Ubuntu 22 azure VM #275

Description

@alpana17

Here is my kitchen.yml
`driver:
name: azurerm
retryable_tries: 120

transport:
name: sftp
ssh_key: /home/jenkins/ssh/kitchen_azure
username: ubuntu
connection_retry_sleep: 30
connection_retries: 20

provisioner:
name: chef_zero
product_name: chef
product_version: 16.10.8
max_retries: 4
wait_for_retry: 200
retry_on_exit_code:
- 1
always_update_cookbooks: true

verifier:
name: inspec

platforms:

  • name: azureubuntu-22
    driver:
    name: azurerm
    subscription_id: 'eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
    location: 'southeastasia'
    machine_size: 'Standard_A2'
    retry_limit: 10
    image_urn: Canonical:0001-com-ubuntu-server-jammy:22_04-lts:22.04.202404090
    username: ubuntu
    vm_name: ifcicd-imageFactoryKitchenInstance
    vnet_id: /subscriptions/exxxxxxxxxxxxxxxxx/resourceGroups/IxxxxxxxxNext/providers/Microsoft.Network/virtualNetworks/ifVnet
    subnet_id: Imagefactorynextsubnet
    public_ip: true
    vm_tags:
    Name: 'ifcicd-[img_fact_ubuntu22::ubuntu-22]kitchen instance for chef converge'
    created-by: 'Kitchen'
    data_disks:
    - lun: 0
    disk_size_gb: 4
    transport:
    name: sftp
    ssh_key: /home/jenkins/ssh/kitchen_azure
    username: ubuntu
    connection_retry_sleep: 30
    connection_retries: 20

suites:

  • name: default
    run_list:
    • 'recipe[so-falcon_sensor::default]'
    • 'recipe[IF_Ubuntu-22_Azure::default]'
      attributes:
      IF_Ubuntu-22_Azure:
      account_id: <%= ENV['AWS_ARTIFACTORY_TOKEN_USER'] %>
      api_key: <%= ENV['AWS_ARTIFACTORY_TOKEN'] %>
      org_custom_configs:
      edr:
      default_cid: <%= ENV['FALCON_CID'] %>
      so-falcon_sensor:
      default_cid: <%= ENV['FALCON_CID'] %>
      do_falcon_cleanup: false
      artifactoy:
      user: <%= ENV['AWS_ARTIFACTORY_TOKEN_USER'] %>
      api_key: <%= ENV['AWS_ARTIFACTORY_TOKEN'] %>
      verifier:
      inspec_tests:
      • test/smoke/default`

Getting error:
[SSH] connection failed, retrying in 30 seconds (#<Net::SSH::AuthenticationFailed: Authentication failed for user ubuntu@>)
Is Ubuntu-22 supported??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions