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
2b72ab0c
Commit
2b72ab0c
authored
Jun 09, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API change: remove bootlog API, use new dump_journal helper for syslog
The systemd journal contains boot log entries.
parent
8e3f0e7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
66 deletions
+1
-66
Nodes.pm
PVE/API2/Nodes.pm
+1
-58
Config.js
www/manager/node/Config.js
+0
-8
No files found.
PVE/API2/Nodes.pm
View file @
2b72ab0c
...
...
@@ -128,7 +128,6 @@ __PACKAGE__->register_method ({
{
name
=>
'
apt
'
},
{
name
=>
'
version
'
},
{
name
=>
'
syslog
'
},
{
name
=>
'
bootlog
'
},
{
name
=>
'
status
'
},
{
name
=>
'
subscription
'
},
{
name
=>
'
tasks
'
},
...
...
@@ -557,63 +556,7 @@ __PACKAGE__->register_method({
my
$user
=
$rpcenv
->
get_user
();
my
$node
=
$param
->
{
node
};
my
(
$count
,
$lines
)
=
PVE::Tools::
dump_logfile
("
/var/log/syslog
",
$param
->
{
start
},
$param
->
{
limit
});
$rpcenv
->
set_result_attrib
('
total
',
$count
);
return
$lines
;
}});
__PACKAGE__
->
register_method
({
name
=>
'
bootlog
',
path
=>
'
bootlog
',
method
=>
'
GET
',
description
=>
"
Read boot log
",
proxyto
=>
'
node
',
permissions
=>
{
check
=>
['
perm
',
'
/nodes/{node}
',
[
'
Sys.Syslog
'
]],
},
protected
=>
1
,
parameters
=>
{
additionalProperties
=>
0
,
properties
=>
{
node
=>
get_standard_option
('
pve-node
'),
start
=>
{
type
=>
'
integer
',
minimum
=>
0
,
optional
=>
1
,
},
limit
=>
{
type
=>
'
integer
',
minimum
=>
0
,
optional
=>
1
,
},
},
},
returns
=>
{
type
=>
'
array
',
items
=>
{
type
=>
"
object
",
properties
=>
{
n
=>
{
description
=>
"
Line number
",
type
=>
'
integer
',
},
t
=>
{
description
=>
"
Line text
",
type
=>
'
string
',
}
}
}
},
code
=>
sub
{
my
(
$param
)
=
@_
;
my
$rpcenv
=
PVE::RPCEnvironment::
get
();
my
$user
=
$rpcenv
->
get_user
();
my
$node
=
$param
->
{
node
};
my
(
$count
,
$lines
)
=
PVE::Tools::
dump_logfile
("
/var/log/boot
",
$param
->
{
start
},
$param
->
{
limit
});
my
(
$count
,
$lines
)
=
PVE::Tools::
dump_journal
(
$param
->
{
start
},
$param
->
{
limit
});
$rpcenv
->
set_result_attrib
('
total
',
$count
);
...
...
www/manager/node/Config.js
View file @
2b72ab0c
...
...
@@ -163,14 +163,6 @@ Ext.define('PVE.node.Config', {
url
:
"
/api2/extjs/nodes/
"
+
nodename
+
"
/syslog
"
}
]);
me
.
items
.
push
([
{
title
:
'
Bootlog
'
,
itemId
:
'
bootlog
'
,
xtype
:
'
pveLogView
'
,
url
:
"
/api2/extjs/nodes/
"
+
nodename
+
"
/bootlog
"
}
]);
}
me
.
items
.
push
([
...
...
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