You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/12/26 20:52:51 UTC
[jira] [Commented] (CLOUDSTACK-5530) attempt to add secondary
storage with the same name is ignored
[ https://issues.apache.org/jira/browse/CLOUDSTACK-5530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857033#comment-13857033 ]
ASF subversion and git services commented on CLOUDSTACK-5530:
-------------------------------------------------------------
Commit 69fb1d4ed04156b61ca7993516d6ca02e72d45a2 in branch refs/heads/4.3 from [~bharat.kumar]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=69fb1d4 ]
CLOUDSTACK-5530 attempt to add secondary storage with the same name is ignored
> attempt to add secondary storage with the same name 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
> Assignee: Bharat Kumar
> 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.5#6160)