You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by DaanHoogland <gi...@git.apache.org> on 2015/11/26 21:28:58 UTC
[GitHub] cloudstack pull request: CID-1339965 handle retrun value on failur...
GitHub user DaanHoogland opened a pull request:
https://github.com/apache/cloudstack/pull/1129
CID-1339965 handle retrun value on failure
coverity reported this as new last week. It has been in the code for ever, i.e. since initial git commit. Minor issue, easy fix.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DaanHoogland/cloudstack CID-1339965
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1129.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1129
----
commit 6e4525f32317764f95a278de39f4f435a4955b65
Author: Daan Hoogland <da...@onecht.net>
Date: 2015-11-26T20:24:52Z
CID-1339965 handle retrun value on failure
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] cloudstack pull request: CID-1339965 handle retrun value on failur...
Posted by pdube <gi...@git.apache.org>.
Github user pdube commented on the pull request:
https://github.com/apache/cloudstack/pull/1129#issuecomment-159993684
LGTM, on code review
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] cloudstack pull request: CID-1339965 handle return value on failur...
Posted by DaanHoogland <gi...@git.apache.org>.
Github user DaanHoogland commented on the pull request:
https://github.com/apache/cloudstack/pull/1129#issuecomment-160264892
Ran the regressions suites, inittially the redundant vpc test failed so I ran it again.
[1129.network.results.txt](https://github.com/apache/cloudstack/files/46291/1129.network.results.txt)
[1129.vpc.results.txt](https://github.com/apache/cloudstack/files/46290/1129.vpc.results.txt)
after rerun:
```
Create a redundant VPC with two networks with two VMs in each network ... === TestName: test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL | Status : SUCCESS ===
ok
```
I suspect a network fluke must have been the issue.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] cloudstack pull request: CID-1339965 handle return value on failur...
Posted by remibergsma <gi...@git.apache.org>.
Github user remibergsma commented on the pull request:
https://github.com/apache/cloudstack/pull/1129#issuecomment-160324069
LGTM based on integration tests run above.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] cloudstack pull request: CID-1339965 handle return value on failur...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/cloudstack/pull/1129
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] cloudstack pull request: CID-1339965 handle retrun value on failur...
Posted by pdube <gi...@git.apache.org>.
Github user pdube commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/1129#discussion_r46006607
--- Diff: services/secondary-storage/server/src/org/apache/cloudstack/storage/template/DownloadManagerImpl.java ---
@@ -558,7 +558,9 @@ public String downloadPublicTemplate(long id, String url, String name, ImageForm
ResourceType.TEMPLATE == resourceType ? _storage.getFile(tmpDir + File.separator + TemplateLocation.Filename) : _storage.getFile(tmpDir + File.separator +
"volume.properties");
if (file.exists()) {
- file.delete();
+ if(! file.delete()) {
+ s_logger.warn("delete of file '" + file.getAbsolutePath() + "' failed.");
--- End diff --
Deletion*
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---