Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merlin] Import of snapshot volume gives incorrect expiry and retention values #704

Open
leenaj0hn opened this issue Aug 2, 2019 · 5 comments
Assignees
Labels
bug medium Need Verification Test team need to verify

Comments

@leenaj0hn
Copy link

Created a sv of a volume on merlin setting the exp and retention time for 2D (2days) and 1D (one day) respectively.
on importing these volumes on docker, the exp and retention hours shows up as pasted below:

[root@cssosecostor-b10 ~]# docker volume inspect import_snap_test_leena
[
{
"CreatedAt": "0001-01-01T00:00:00Z",
"Driver": "hpe",
"Labels": {},
"Mountpoint": "",
"Name": "import_snap_test_leena",
"Options": {
"importVol": "snap_test_leena"
},
"Scope": "global",
"Status": {
"snap_detail": {
"3par_vol_name": "dcs-XNb1qRHISqqphb9-PMYAWw",
"backend": "DEFAULT",
"compression": true,
"expiration_hours": 0,
"fsMode": null,
"fsOwner": null,
"is_snap": true,
"mountConflictDelay": 30,
"parent_id": "d5f97733-2c6f-4b03-a561-996e6c8c65bf",
"parent_volume": "import_test_leena",
"provisioning": "thin",
"retention_hours": 0.0002777777777777778,
"size": 16,
"snap_cpg": "sandesh"
}
}
}
]

@bhagyashree-sarawate
Copy link
Contributor

Need to check

@amitk1977
Copy link
Collaborator

Assigned to Bhagyashree

@sonawane-shashikant
Copy link

This behavior is seen on 3PAR as well.

CSSOSBE03-B01:~ # docker volume inspect volu4321
[
{
"Driver": "hpe",
"Labels": {},
"Mountpoint": "/",
"Name": "volu4321",
"Options": {
"importVol": "snap1234"
},
"Scope": "global",
"Status": {
"snap_detail": {
"3par_vol_name": "dcs-3gN8Z1yvS5W4aZgRGI21Qw",
"backend": "DEFAULT",
"compression": null,
"expiration_hours": 0,
"fsMode": null,
"fsOwner": null,
"is_snap": true,
"mountConflictDelay": 30,
"parent_id": "e0ea8db9-4d76-41c5-9f67-71b9bf2dfe8e",
"parent_volume": "volu8765",
"provisioning": "thin",
"retention_hours": 0.0002777777777777778,
"size": 10,
"snap_cpg": "Sandesh"
}
}
}
]

@sneharai4
Copy link
Collaborator

@leenaj0hn @sonawane-shashikant Fix merged #727. Please verify.

@sneharai4 sneharai4 added the Need Verification Test team need to verify label Oct 7, 2019
@sonawane-shashikant
Copy link

This bug is verified as FIXED.

[root@master-node ~]# docker volume inspect VOLUME_SNAP
[
{
"Driver": "hpe",
"Labels": {},
"Mountpoint": "/",
"Name": "VOLUME_SNAP",
"Options": {
"importVol": "TEST_SNAP"
},
"Scope": "global",
"Status": {
"snap_detail": {
"3par_vol_name": "dcs-BQnQ8SuGS7az9FJcgx1iWQ",
"backend": "DEFAULT",
"compression": null,
"expiration_hours": 48,
"fsMode": null,
"fsOwner": null,
"id": "0509d0f1-2b86-4bb6-b3f4-525c831d6259",
"is_snap": true,
"mountConflictDelay": 30,
"parent_id": "a42275eb-d7bb-4359-86ac-1972a6a932c2",
"parent_volume": "VOLUME_1",
"provisioning": "thin",
"retention_hours": 23.99972222222222,
"size": 10,
"snap_cpg": "SHASHI_SRC_CPG"
}
}
}
]
[root@master-node ~]#
@leenaj0hn please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug medium Need Verification Test team need to verify
Projects
None yet
Development

No branches or pull requests

5 participants