Commit Graph

3204 Commits

Author SHA1 Message Date
Dominik Csapak
fddeb25b25 add a bluestore checkbox to the create osd window
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
72afef500c use better icons in the ceph osd tree view
this uses the same icons for hosts/osds as in the resource tree,
and also uses the same arrow style

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
0e9a34c660 reload the pool grid correctly
whenever a window is closed (creation, deletion) we want to reload the
pool grid, for not having to wait on the next refresh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
c9508b5d4c also get the crush rule name in the ceph pool list
we get the names in the backend, and give them as an additional field
in the api call, and use it in the grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
d2692b86e2 fix #1465: use a combobox for the crush rule instead of the id
this patch does a few things

1. we introduce a new api call /nodes/nodename/ceph/rules
   which gets us a list of crush rules

2. we introduce a new CephRuleSelector which is a simple combobox
   with the data from the api call ceph/rules

3. we use this in the create pool window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
2db28c036e make crush rules working again
since ceph 12.1.1 the (deprecated) parameter 'crush_ruleset' is removed
and replaced with 'crush_rule' while changing this, change from
integer to string so that we can later use the names of the rules
instead of the id

(for now there seems to be a bug that you can only use the name and
not the id)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
33a7e15766 add osd device class to osd tree
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
bb7d5aa955 correctly remove partitions for ceph bluestore osds
we now have to remove 5 types of partitions:

data/metadata
journal
block
block.db
block.wal

this patch fixes the detection of block/block.db/block.wal
generalizes it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
8d64bd8c3b enable using a device for bluestore block db/wal
we reuse the 'journal_dev' parameter for bluestores block.db
and add a new parameter 'wal_dev' for bluestores write ahead log

if only journal_dev is given, use it for both db and wal

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-31 15:25:34 +02:00
Dominik Csapak
87eb0fc205 fix creating the first ceph monitor
we cannot use a rados connection before having at least one monitor,
so we have to move it down

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-27 15:14:21 +02:00
Wolfgang Bumiller
2ef26c4eec bump version to 5.0-27 2017-07-26 16:52:18 +02:00
Dominik Csapak
b0e5ae21cf add missing '-' to service name pattern
since ids can contain '-', we have to include them in the pattern
for the service names

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-26 16:51:09 +02:00
Wolfgang Bumiller
f49b4beb54 add missing changelog entry 2017-07-26 16:51:06 +02:00
Wolfgang Bumiller
48c8c086ba bump version to 5.0-26 2017-07-26 15:40:29 +02:00
Thomas Lamprecht
fc03fcb896 dc/Backup: do not focus node selector on window focus
Do not focus anything here in the case he backup window gains focus
again. Else, if we click outside of the window the nodefield gets
always focused again - even if another field was focused previously.
This is a bit confusing, rather have no field focused at all -
especially as a blank value will be often used here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-07-26 15:37:05 +02:00
Thomas Lamprecht
5008eb97ad ComboGrid: open picker also when focusing an editable field
ComboBoxes provided by UI frameworks normally show their selection
possibilities once focused, ExtJS does this too but not on editable
(and thus filterable) input fields. Add a logic which allows this too
and streamlines the behavior of ComboGrid/Box like components.

To avoid a glitch, where clicking the "picker trigger" (the down
arrow which normally toggles the selection picker) would first focus
the element - thus expanding it - and only then causing a toggle
which collapses it again, we overwrite the 'Ext.form.trigger.Trigger'
onMouseDown so that we can skip a expansion on this event.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-07-26 15:37:05 +02:00
Thomas Lamprecht
1404194f35 FileStore: make editable to allow filtering
Making this ComboGrid based component editable allows implicit
filtering the backing store.
This is quite helpful on file selection, as for example the ISO file
selector from the create wizard is.
Clear the filter (and its displayed value) on store selection change,
as there the filter becomes void - at least this is a simple and easy
solution without glitches.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-07-26 15:37:05 +02:00
Thomas Lamprecht
83fb529c2f ComboGrid: improve setting 'editable' default value
This allows child classes to use another default, the initialConfig
didn't allowed that.
This is also the ExtJS like way to set defaults.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-07-26 15:37:05 +02:00
Thomas Lamprecht
eae6918493 FileSelector: adapt combogrid total and column width
By default the "Size" column ellipsed a lot entries, which is just
annoying. Adapt it so that all sizes can be viewed comfortably.

Further increase the total width of this combogrid, a lot less could
be seen there since theme change from the 4.X era.
Use an new empirical found out good  working value.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-07-26 15:37:05 +02:00
Dominik Csapak
be753927e7 whitespace cleanup
and intendation fix

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-26 14:45:07 +02:00
Dominik Csapak
ca68ac3efd pveceph: add createmgr/destroymgr commands
this patch adds the create-/destroymgr commands to the api and pveceph,
so that advanced users can split monitor and manager daemons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-26 14:45:07 +02:00
Dominik Csapak
c05ff7b4de pveceph: create mgr with mon, use nodename for id
we now want to add a ceph-mgr daemon to every node where a ceph-mon
daemon runs, as per ceph documentation recommendation, because in
luminous the mgr daemons will not be automatically created/started
with a monitor anymore

we also give the createmon an optional id parameter, so that one
can set a custom id, and make the creation/removal of the manager
optional but the default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-26 14:45:07 +02:00
Emmanuel Kasper
61516423ad Improve a bit the esthetics of the User Settings window
* group the action buttons on the left, to distinguish them from the modal
 'close' button
 * display the action buttons as grey instead of blue, to be consistent
 with the rest of the GUI
2017-07-25 14:24:35 +02:00
Emmanuel Kasper
9317d08a2d Rename the pve-help-button to pve-inline-button
This will allow reuse of the class for other inlined buttons
2017-07-25 14:24:35 +02:00
Emmanuel Kasper
d0ad472c73 Close #1268: Show migration start server and migration end server 2017-07-25 14:24:35 +02:00
Emmanuel Kasper
2ddb072661 Do not display the abbreviated commit SHA-1 in the workspace version string
This string is ugly and unfit for human consumption for 99% of our users.
The same information is available in a number of place in the GUI via Node
Summary, Package Versions, Subscription (Report)
2017-07-25 14:24:35 +02:00
Wolfgang Bumiller
aa44a5a8cf bump version to 5.0-25 2017-07-24 16:17:16 +02:00
Dominik Csapak
e932cd5f70 adapt the health message list to luminous
they restructured the json structure, so we have to adapt to it.
additionally, we now have a 'detail' property for the messages
which we show on a click of the 'info' button in the new actioncolumn

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Dominik Csapak
4a0bb01712 adapt ceph status detail to luminous and make it more robust
they restructured the json interface
(e.g. they removed the timechecks from ceph status)

so we have to generate those differently

also make the whole thing more robust to changes,
as in do not bail out if one thing is missing, but check the needed
data only when we need it and omit that part

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Dominik Csapak
d18bf116a3 rename 'monitors' to 'states' in pg list
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Dominik Csapak
dfe6d184ff adapt render_ceph_health for luminous
it is using 'status' instead of 'overall_health' now

also only give the health object now

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Dominik Csapak
84caf265bd add health detail to ceph status api call
with ceph 12.1.1 luminous, ceph has reorganized its json
interface of the ceph status and ceph health call

so to get everything we need, we have to also get
the ceph health detail information into our
status call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Wolfgang Bumiller
9cf3e44912 ceph: end ceph.list with a newline 2017-07-20 09:32:28 +02:00
Wolfgang Bumiller
a58dc7f35f bump version to 5.0-24 2017-07-19 12:56:00 +02:00
Emmanuel Kasper
b6571655d9 Use emptyText to inform the user of the value that will set be when the field is empty
emptyText is not submitted, because it does not count as value when getSubmitValue() is
called on it in PVE.panel.InputPanel.getValues()
2017-07-19 12:49:46 +02:00
Wolfgang Link
b6c427261c Fix pveceph createosd
The --filestore flag is now required see doc of ceph.

If the --bluestore argument is given, a bluestore objectstore will be
created.  If --filestore is provided, a legacy FileStore objectstore
will be created.  If neither is specified, we default to BlueStore.
2017-07-19 12:40:28 +02:00
Wolfgang Bumiller
85fd9b52ae Revert "trust StartCom_Certification_Authority_2.crt"
This reverts commit 12fe9183cb.

Revert "add missing file"

This reverts commit c11885e0a0.

We've switched to Let's Encrypt.

postinst configure: run update-ca-certificates if the
  previous version is <= 5.0-23.
2017-07-19 09:38:49 +02:00
Wolfgang Bumiller
103ddb8868 buildsys: use CC, CPPFLAGS and CFLAGS
pvemailforward is a tiny oneliner, but for the sake of best
practices, let's use the build tools from the environment.
For example, with dpkg-buildpackage this will make us use
-D_FORTIFY_SOURCE=2 etc.
2017-07-19 08:57:31 +02:00
Emmanuel Kasper
db3395bb83 Fix #1450 : restore setgid bit on pvemailforward binary
When calling chown on a setuid/setgid executable, the
setuid/setgid bits are reset to 0. So ordering matters
here. See chown(2).
2017-07-19 08:57:31 +02:00
Dominik Csapak
dcbb4ba190 check if storage is in the selector
when having an lxc mountpoint/rootfs on a storage which does not
allow the 'rootfs' content (e.g. somebody disabled it after creating
a container there), trying to edit the mp/rootfs broke the gui

now we check if the record exists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-13 09:48:44 +02:00
Dominik Csapak
20d9d1f326 fix breaking gui when trying to edit a bindmount rootfs
when having a simple directory as rootfs,
trying to edit it in the gui broke it, because
we tried to disable the backup checkbox which did not exists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-13 06:36:43 +02:00
Dominik Csapak
60a14a047d fix wrong osd calculation in ceph dashboard
in luminous, the error message is not
'x/y in osds are down' anymore, but
'x osds down'

so we need to adapt the parsing, and it means we cannot check
the number of in osds there anymore (was never really needed, so
we can simply omit it)

when an osd is down but marked as out, those errors disappear

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-13 06:36:34 +02:00
Emmanuel Kasper
7da4966dc0 Select OS Type after selecting the Installation Media
This prepares for the future, in case we want to infer the
OS Type from the installation media name or content.
2017-07-11 13:25:25 +02:00
Emmanuel Kasper
8d4f1d4d2b Use a View Controller for making components react to each other
This allow to declare all the components inside the same items
array, and separate behaviour from view better.

No functional changes.
2017-07-11 13:24:48 +02:00
Emmanuel Kasper
85806e47d1 Use camel case for InputPanels aliases
Camel Case names for component alias follow Ext recommended practises
and are used otherwise everyelse in the code base.

No functionnal changes, aliases for these components were not used
anyway.
2017-07-11 13:23:38 +02:00
Dietmar Maurer
c11885e0a0 add missing file 2017-07-04 11:57:07 +02:00
Dietmar Maurer
9795f74434 bump version to 5.0-23 2017-07-04 11:51:00 +02:00
Dietmar Maurer
12fe9183cb trust StartCom_Certification_Authority_2.crt 2017-07-04 11:48:52 +02:00
Dietmar Maurer
4029c97f08 Replication.js: translate 'Error' 2017-07-04 09:06:25 +02:00
Dietmar Maurer
d4177d53d5 avoid extra gettext string 2017-07-04 09:02:24 +02:00