Hi Andreas,
I'm not sure why your host details are missing the username for both hosts.
Here are mine:
- the first one is of a host added with ssh key
| 917056 | 31 | Host.OS.Kernel.Version |
4.18.0-305.3.1.el8_4.x86_64 |
| 917057 | 31 | com.cloud.network.Networks.RouterPrivateIpStrategy |
HostLocal |
| 917058 | 31 | Host.OS.Version |
8.7 |
| 917059 | 31 | host.volume.encryption |
true |
| 917060 | 31 | secured |
true |
| 917061 | 31 | Host.OS |
Rocky Linux |
| 917063 | 31 | password |
|
| 917069 | 31 | username |
root |
- and this one with username and password
| 125 | 9 | Host.OS.Kernel.Version |
4.18.0-305.3.1.el8_4.x86_64 |
| 126 | 9 | com.cloud.network.Networks.RouterPrivateIpStrategy |
HostLocal |
| 127 | 9 | Host.OS.Version |
8.7 |
| 128 | 9 | secured |
true |
| 129 | 9 | Host.OS |
Rocky Linux |
| 133 | 9 | host.uefi.enable |
true |
| 137 | 9 | password |
p7swLiGnxUq0gg1ZwVqZgPeZrqIdWPUj |
| 143 | 9 | username |
root
According to the code, the username or password is needed (but I guess it
won't work without both) for the operations - take a backup, restore a VM
from a backup and restore a volume.
Best regards,
Slavka
On Thu, Apr 11, 2024 at 7:04 PM Andreas S. Kerber <[email protected]>
wrote:
> Hi Slavka,
>
> thanks for your answer! Indeed the hosts where not added with
> username/password and host_details has no credentials.
> Can you share the name of the required attributes? This is my current
> host_details table:
>
>
> mysql> select * from host_details;
>
> +-----+---------+----------------------------------------------------+----------------------------------+
> | id | host_id | name |
> value |
>
> +-----+---------+----------------------------------------------------+----------------------------------+
> | 171 | 10 | Host.OS.Kernel.Version |
> 5.15.0-204.147.6.3.el9uek.x86_64 |
> | 172 | 10 | com.cloud.network.Networks.RouterPrivateIpStrategy |
> HostLocal |
> | 173 | 10 | Host.OS.Version |
> 9.3 |
> | 174 | 10 | host.volume.encryption |
> true |
> | 175 | 10 | secured |
> true |
> | 176 | 10 | Host.OS | Red
> Hat Enterprise Linux |
> | 201 | 15 | Host.OS.Kernel.Version |
> 5.15.0-204.147.6.3.el9uek.x86_64 |
> | 202 | 15 | com.cloud.network.Networks.RouterPrivateIpStrategy |
> HostLocal |
> | 203 | 15 | Host.OS.Version |
> 9.3 |
> | 204 | 15 | host.volume.encryption |
> true |
> | 205 | 15 | secured |
> true |
> | 206 | 15 | Host.OS | Red
> Hat Enterprise Linux |
>
> +-----+---------+----------------------------------------------------+----------------------------------+
> 12 rows in set (0.01 sec)
>
>
> Am Thu, Apr 11, 2024 at 04:20:22PM +0300 schrieb Slavka Peleva:
> > Hi Andreas,
> >
> > The Networker plugin is trying to get the credentials for the host from
> the
> > DB table `host_details` and if one is missing - username/password - you
> > will get this error message. If only the password is missing from the
> table
> > for that host, maybe you have added the host with the ssh key.
> >
> > Best regards,
> > Slavka
> >
> > On Wed, Apr 10, 2024 at 9:02 PM Andreas S. Kerber <[email protected]
> >
> > wrote:
> >
> > > Hi,
> > >
> > > I'm trying to get VM backups of 2 node KVM cluster working (using
> > > networker). Wwhen trying to start a backup I'm immediatly getting a
> error
> > > message about missing hypervisor login credentials. Maybe I overlooked
> > > someting in the documentation but I can't figure out where these login
> > > credentials are configured. Can anybody give me a hint?
> > >
> > >
> > > Here's the log of one of my CreateBackupCmd Jobs:
> > >
> > > 2024-04-10 17:41:10,476 INFO [o.a.c.f.j.i.AsyncJobMonitor]
> > > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:b1913df8) Add
> job-1549
> > > into job monitoring
> > >
> > > 2024-04-10 17:41:10,482 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (qtp1278254413-402:ctx-dddc56ad ctx-33b958e5) (logid:1dda45c8) submit
> async
> > > job-1549, details: AsyncJobVO: {id:1549, userId: 4, accountId: 4,
> > > instanceType: Backup, instanceId: 81, cmd:
> > > org.apache.cloudstack.api.command.user.backup.CreateBackupCmd, cmdInfo:
> > >
> {"virtualmachineid":"e338c774-6693-485f-9746-e3d172665af5","response":"json","ctxUserId":"4","httpmethod":"GET","ctxStartEventId":"3293","id":"81","ctxDetails":"{\"interface
> > >
> com.cloud.vm.VirtualMachine\":\"e338c774-6693-485f-9746-e3d172665af5\"}","ctxAccountId":"4","cmdEventType":"BACKUP.CREATE"},
> > > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> > > result: null, initMsid: 345049358837, completeMsid: null, lastUpdated:
> > > null, lastPolled: null, created: null, removed: null}
> > >
> > > 2024-04-10 17:41:10,485 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:e4d20d53) Executing
> > > AsyncJobVO: {id:1549, userId: 4, accountId: 4, instanceType: Backup,
> > > instanceId: 81, cmd:
> > > org.apache.cloudstack.api.command.user.backup.CreateBackupCmd, cmdInfo:
> > >
> {"virtualmachineid":"e338c774-6693-485f-9746-e3d172665af5","response":"json","ctxUserId":"4","httpmethod":"GET","ctxStartEventId":"3293","id":"81","ctxDetails":"{\"interface
> > >
> com.cloud.vm.VirtualMachine\":\"e338c774-6693-485f-9746-e3d172665af5\"}","ctxAccountId":"4","cmdEventType":"BACKUP.CREATE"},
> > > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> > > result: null, initMsid: 345049358837, completeMsid: null, lastUpdated:
> > > null, lastPolled: null, created: null, removed: null}
> > >
> > > 2024-04-10 17:41:10,519 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:e4d20d53) Complete
> async
> > > job-1549, jobStatus: FAILED, resultCode: 530, result:
> > >
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Cannot
> > > find login credentials for HYPERVISOR
> df99ba84-7814-47b8-aa99-dd9553c56b4c"}
> > >
> > > {...}
> > > 2024-04-10 17:41:10,528 INFO [o.a.c.f.j.i.AsyncJobMonitor]
> > > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:e4d20d53) Remove
> > > job-1549 from job monitoring
> > >
> > >
> > > (local) > list backupofferings
> > > {
> > > "backupoffering": [
> > > {
> > > "allowuserdrivenbackups": true,
> > > "created": "2024-04-10T17:08:37+0200",
> > > "description": "Networker Instance Backup - 30 days retention",
> > > "externalid": "57.0.53.26.0.0.0.0.0.130.19.102.213.182.20.91",
> > > "id": "8373b357-6b3f-41d9-8054-873914e95476",
> > > "name": "Networker Instance Backup",
> > > "zoneid": "c65618bc-0dcf-4f8a-b365-6b0c11750091",
> > > "zonename": "RZKE1"
> > > }
> > > ],
> > > "count": 1
> > > }
> > >
> > >
> > > (local) > list hosts id=df99ba84-7814-47b8-aa99-dd9553c56b4c
> > > {
> > > "count": 1,
> > > "host": [
> > > {
> > > "capabilities": "hvm,snapshot",
> > > "clusterid": "19939e9e-7588-47e0-82f5-3cd6a634723a",
> > > "clustername": "RZKE1_Cluster03",
> > > "clustertype": "CloudManaged",
> > > "cpuallocated": "4.51%",
> > > "cpuallocatedpercentage": "4.51%",
> > > "cpuallocatedvalue": 13000,
> > > "cpuallocatedwithoverprovisioning": "4.51%",
> > > "cpuloadaverage": 0.73,
> > > "cpunumber": 96,
> > > "cpusockets": 2,
> > > "cpuspeed": 3000,
> > > "cpuused": "0.6%",
> > > "cpuwithoverprovisioning": "288000",
> > > "created": "2024-03-05T17:16:05+0100",
> > > "details": {
> > > "Host.OS": "Red Hat Enterprise Linux",
> > > "Host.OS.Kernel.Version": "5.15.0-204.147.6.3.el9uek.x86_64",
> > > "Host.OS.Version": "9.3",
> > > "com.cloud.network.Networks.RouterPrivateIpStrategy":
> "HostLocal",
> > > "secured": "true"
> > > },
> > > "encryptionsupported": true,
> > > "events": "PingTimeout; AgentDisconnected; AgentConnected;
> HostDown;
> > > Ping; Remove; ShutdownRequested; ManagementServerDown;
> StartAgentRebalance",
> > > "hahost": false,
> > > "hasannotations": false,
> > > "hostha": {
> > > "haenable": false,
> > > "haprovider": "kvmhaprovider",
> > > "hastate": "Disabled"
> > > },
> > > "hypervisor": "KVM",
> > > "id": "df99ba84-7814-47b8-aa99-dd9553c56b4c",
> > > "ipaddress": "172.16.67.76",
> > > "islocalstorageactive": false,
> > > "lastpinged": "1970-01-20T09:36:49+0100",
> > > "managementserverid": "56474c8f-7212-424f-8eb1-34850b751b5b",
> > > "memoryallocated": 24165482496,
> > > "memoryallocatedbytes": 24165482496,
> > > "memoryallocatedpercentage": "6%",
> > > "memorytotal": 402669568000,
> > > "memoryused": 11093024768,
> > > "memorywithoverprovisioning": "402669568000",
> > > "name": "eb17.srv.ke1.in.speedkom.net",
> > > "networkkbsread": 16424,
> > > "networkkbswrite": 0,
> > > "outofbandmanagement": {
> > > "enabled": false,
> > > "powerstate": "Disabled"
> > > },
> > > "podid": "880e3a2b-7918-41c3-b9f7-b8668f2f9ee4",
> > > "podname": "CUBE01",
> > > "resourcestate": "Enabled",
> > > "state": "Up",
> > > "type": "Routing",
> > > "ueficapability": false,
> > > "version": "4.19.0.1",
> > > "zoneid": "c65618bc-0dcf-4f8a-b365-6b0c11750091",
> > > "zonename": "RZKE1"
> > > }
> > > ]
> > > }
> > >
> > >
>