Skip to content

System offering of router says its local storage but it ends up on different if the pools are disabled #3939

@borisstoyanov

Description

@borisstoyanov
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Deployment planner
CLOUDSTACK VERSION
4.14
CONFIGURATION
OS / ENVIRONMENT

Have a local storage pool with some other pools as well

SUMMARY

Steps:

(localcloud) SBCM5> > list routers filter=name,serviceofferingid,,templateid,
{
  "count": 1,
  "router": [
    {
      "name": "r-21-VM",
      "serviceofferingid": "1f3d4c8c-c585-47f1-8cdb-f03cb4076988",
      "templateid": "62f6a3bd-0160-4e52-b72c-2e61fc74a987"
    }
  ]
}
(localcloud) SBCM5> > list templates id=62f6a3bd-0160-4e52-b72c-2e61fc74a987 templatefilter=all filter=directdownload,name,
{
  "count": 1,
  "template": [
    {
      "directdownload": true,
      "name": "ssvm4.14"
    }
  ]
}
(localcloud) SBCM5> > list serviceofferings issystem=true
    {
      "cpunumber": 1,
      "cpuspeed": 500,
      "created": "2020-02-20T07:23:35+0000",
      "defaultuse": true,
      "id": "1f3d4c8c-c585-47f1-8cdb-f03cb4076988",
      "iscustomized": false,
      "issystem": true,
      "isvolatile": false,
      "limitcpuuse": false,
      "memory": 256,
      "name": "System Offering For Software Router - Local Storage",
      "offerha": true,
      "provisioningtype": "thin",
      "storagetype": "local",
      "systemvmtype": "domainrouter"
    },

But there’s a system offering available for mountshare and it is not used: 

 "serviceoffering": [
    {
      "cpunumber": 1,
      "cpuspeed": 1024,
      "created": "2020-02-25T09:45:03+0000",
      "defaultuse": false,
      "displaytext": "System offering for VR - Mountshare",
      "id": "43e8df56-6f4e-408e-b619-53cf6289dc30",
      "iscustomized": false,
      "iscustomizediops": false,
      "issystem": true,
      "isvolatile": false,
      "limitcpuuse": false,
      "maxiops": 0,
      "memory": 512,
      "miniops": 0,
      "name": "System offering for VR - Mountshare",
      "offerha": false,
      "provisioningtype": "thin",
      "storagetype": "shared",
      "systemvmtype": "domainrouter",
      "tags": "ms"
    },

MariaDB [cloud]> select id,pool_id from volumes where name ='ROOT-21';
+----+---------+
| id | pool_id |
+----+---------+
| 24 |       5 |
+----+---------+
1 row in set (0.00 sec)

MariaDB [cloud]> select pool_type from storage_pool where id=5;
+------------------+
| pool_type        |
+------------------+
| SharedMountPoint |
+------------------+
1 row in set (0.00 sec)




STEPS TO REPRODUCE
Enable maintenance on all Storage pools but a Sharedmountpoint

Restart a Network with cleanup

Observe that the new VR is created correctly on the only available storage pool, but the offering is not correct under which is created
EXPECTED RESULTS
Deployment to fail as there's no suitable storage
ACTUAL RESULTS
Deployment is successful on shared storage

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions