You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<marvin.cloudstackAPI.createStoragePool.createStoragePoolCmd object at 0x7f8d9bdae0b0>
Exception Occurred: ['Traceback (most recent call last):\n', ' File "/home/dahn/apache/cloudstack/tools/marvin/marvin/deployDataCenter.py", line 282, in createPrimaryStorages\n ret = self.__apiClient.createStoragePool(primarycmd)\n', ' File "/home/dahn/.local/lib/python3.10/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 3540, in createStoragePool\n response = self.connection.marvinRequest(command, response_type=response, method=method)\n', ' File "/home/dahn/.local/lib/python3.10/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest\n raise e\n', ' File "/home/dahn/.local/lib/python3.10/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest\n raise self.__lastError\n', ' File "/home/dahn/.local/lib/python3.10/site-packages/marvin/cloudstackConnection.py", line 308, in __parseAndGetResponse\n ret = jsonHelper.getResultObj(\n', ' File "/home/dahn/.local/lib/python3.10/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: createstoragepool failed, due to: errorCode: 530, errorText:Failed to add data store: Failed to create storage pool as it is not accessible to hosts.\n']
cfg:
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
{
"zones": [
{
"name": "zim1",
"guestcidraddress": "10.100.1.0/24",
"dns1": "10.147.100.6",
"physical_networks": [
{
"broadcastdomainrange": "Zone",
"vlan": "1100-1200",
"name": "z1-pnet",
"traffictypes": [
{
"typ": "Guest"
},
{
"typ": "Management"
},
{
"typ": "Public"
}
],
"providers": [
{
"broadcastdomainrange": "ZONE",
"name": "VirtualRouter"
},
{
"broadcastdomainrange": "ZONE",
"name": "VpcVirtualRouter"
},
{
"broadcastdomainrange": "ZONE",
"name": "InternalLbVm"
}
],
"isolationmethods": [
"VLAN"
]
}
],
"ipranges": [
{
"startip": "192.168.100.2",
"endip": "192.168.100.200",
"netmask": "255.255.255.0",
"vlan": "50",
"gateway": "192.168.100.1"
}
],
"networktype": "Advanced",
"pods": [
{
"endip": "172.16.100.200",
"name": "Z1P1",
"startip": "172.16.100.2",
"netmask": "255.255.255.0",
"clusters": [
{
"clustername": "Z1P1C1",
"hypervisor": "simulator",
"hosts": [
{
"username": "root",
"url": "http://sim1/c1/h1",
"password": "password"
}
],
"clustertype": "CloudManaged"
}
],
"gateway": "172.16.100.1"
}
],
"internaldns1": "10.147.100.6",
"primaryStorages": [
{
"url": "nfs://10.147.100.6:/export/home/sandbox/z2p3",
"name": "Z1PS1",
"hypervisor": "Any"
}
],
"secondaryStorages": [
{
"url": "nfs://10.147.100.6:/export/home/sandbox/z1secondary",
"provider" : "NFS"
}
]
}
],
"dbSvr": {
"dbSvr": "localhost",
"passwd": "cloud",
"db": "cloud",
"port": 3306,
"user": "cloud"
},
"logger":
{
"LogFolderPath": "/tmp"
},
"mgtSvr": [
{
"mgtSvrIp": "localhost",
"passwd": "password",
"user": "root",
"port": 8096,
"hypervisor": "simulator",
"useHttps": "False",
"certCAPath": "NA",
"certPath": "NA"
}
]
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR allows adding zone-wide primary storage on simulator
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Before it was not possible to add a zone-wide storage pool on the simulator

After the changes:

How Has This Been Tested?
Add zone wide primary storage, select Simulator on Hypervisor when Scope = 'Zone'