You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Srikanteswararao Talluri (JIRA)" <ji...@apache.org> on 2013/12/17 14:57:08 UTC
[jira] [Created] (CLOUDSTACK-5530) attempt to add secondary storage
with the same is ignored
Srikanteswararao Talluri created CLOUDSTACK-5530:
----------------------------------------------------
Summary: attempt to add secondary storage with the same is ignored
Key: CLOUDSTACK-5530
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5530
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.3.0
Environment: xenserver
advanced zone
Reporter: Srikanteswararao Talluri
Priority: Critical
Fix For: 4.3.0
1. create a image store(secondary storage) with name 's'.
2. Try to add another secondary storage with same name.
API doesn't fail but it ignores the addimagestore command.
DB just shows only one image store:
mysql> select * from image_store;
+----+------+---------------------+----------+-----------------------------------------------+----------------+-------+-------+--------------------------------------+--------------------------------------+---------------------+---------+------------+------------+
| id | name | image_provider_name | protocol | url | data_center_id | scope | role | uuid | parent | created | removed | total_size | used_bytes |
+----+------+---------------------+----------+-----------------------------------------------+----------------+-------+-------+--------------------------------------+--------------------------------------+---------------------+---------+------------+------------+
| 1 | s | NFS | nfs | nfs://10.147.28.7/export/home/talluri/xen/sec | 1 | ZONE | Image | a03584ab-5858-437a-99cd-4627ff3d543b | 423a8ae9-3eed-3dcb-9463-b0866af4c4be | 2013-12-16 17:54:12 | NULL | NULL | NULL |
+----+------+---------------------+----------+-----------------------------------------------+----------------+-------+-------+--------------------------------------+--------------------------------------+---------------------+---------+------------+------------+
1 row in set (0.00 sec)
Management server log for second image store addition:
===START=== 10.252.193.28 -- GET command=addImageStore&response=json&sessionkey=tFtENjuwRWIixsebaImtLuJhOD4%3D&name=s&provider=NFS&zoneid=9fb59079-b686-47eb-8d58-faabc9e39e60&url=nfs%3A%2F%2F10.147.28.7%2Fexport%2Fhome%2Ftalluri%2Fxen%2Fsecb&_=1387288311423
2013-12-18 00:44:42,197 INFO [o.a.c.s.d.l.CloudStackImageStoreLifeCycleImpl] (catalina-exec-7:ctx-6f9f0b38 ctx-c386ef69) Trying to add a new data store at nfs://10.147.28.7/export/home/talluri/xen/secb to data center 2
2013-12-18 00:44:42,242 DEBUG [c.c.a.ApiServlet] (catalina-exec-7:ctx-6f9f0b38 ctx-c386ef69) ===END=== 10.252.193.28 -- GET command=addImageStore&response=json&sessionkey=tFtENjuwRWIixsebaImtLuJhOD4%3D&name=s&provider=NFS&zoneid=9fb59079-b686-47eb-8d58-faabc9e39e60&url=nfs%3A%2F%2F10.147.28.7%2Fexport%2Fhome%2Ftalluri%2Fxen%2Fsecb&_=1387288311423
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)