Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
35a72468
Commit
35a72468
authored
Apr 01, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pveceph: fix purge command
parent
e69bd5aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pveceph
bin/pveceph
+6
-2
No files found.
bin/pveceph
View file @
35a72468
...
@@ -16,6 +16,7 @@ use PVE::RPCEnvironment;
...
@@ -16,6 +16,7 @@ use PVE::RPCEnvironment;
use
PVE::
Storage
;
use
PVE::
Storage
;
use
PVE::
Tools
qw(run_command)
;
use
PVE::
Tools
qw(run_command)
;
use
PVE::
JSONSchema
qw(get_standard_option)
;
use
PVE::
JSONSchema
qw(get_standard_option)
;
use
PVE::
CephTools
;
use
PVE::API2::
Ceph
;
use
PVE::API2::
Ceph
;
use
PVE::
CLIHandler
;
use
PVE::
CLIHandler
;
...
@@ -60,14 +61,17 @@ __PACKAGE__->register_method ({
...
@@ -60,14 +61,17 @@ __PACKAGE__->register_method ({
my
$monstat
;
my
$monstat
;
eval
{
$monstat
=
PVE::API2::Ceph::
ceph_mon_status
(
1
);
};
eval
{
my
$rados
=
PVE::
RADOS
->
new
();
my
$monstat
=
$rados
->
mon_command
({
prefix
=>
'
mon_status
'
});
};
my
$err
=
$@
;
my
$err
=
$@
;
die
"
detected running ceph services- unable to purge data
\n
"
die
"
detected running ceph services- unable to purge data
\n
"
if
!
$err
;
if
!
$err
;
# fixme: this is dangerous - should we really support this function?
# fixme: this is dangerous - should we really support this function?
PVE::
API2::Ceph
::
purge_all_ceph_files
();
PVE::
CephTools
::
purge_all_ceph_files
();
return
undef
;
return
undef
;
}});
}});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment