option]['encrypted'] = data[0]['encrypted']
orch.osds.create([DriveGroupSpec.from_json(
predefined_drive_groups[option])])
- except (ValueError, TypeError, DriveGroupValidationError) as e:
+ except (ValueError, TypeError, KeyError, DriveGroupValidationError) as e:
raise DashboardException(e, component='osd')
def _create_bare(self, data):
hosts.navigateTo();
});
- it('should check if monitoring stacks are running on the root host', () => {
- const monitoringStack = ['alertmanager', 'grafana', 'node-exporter', 'prometheus'];
- hosts.clickTab('cd-host-details', 'ceph-node-00', 'Daemons');
- for (const daemon of monitoringStack) {
- cy.get('cd-host-details').within(() => {
- services.checkServiceStatus(daemon);
- });
- }
- });
-
- // avoid creating node-exporter on the newly added host
- // to favour the host draining process
- it('should reduce the count for node-exporter', () => {
- services.editService('node-exporter', '3');
- });
-
// grafana ip address is set to the fqdn by default.
// kcli is not working with that, so setting the IP manually.
- it('should change ip address of grafana', { retries: 2 }, () => {
+ it('should change ip address of grafana, prometheus and alertmanager', () => {
const dashboardArr: Input[] = [
{
id: 'GRAFANA_API_URL',
newValue: 'https://192.168.100.100:3000',
oldValue: ''
+ },
+ {
+ id: 'PROMETHEUS_API_HOST',
+ newValue: 'http://192.168.100.100:9095',
+ oldValue: ''
+ },
+ {
+ id: 'ALERTMANAGER_API_HOST',
+ newValue: 'http://192.168.100.100:9093',
+ oldValue: ''
}
];
mgrmodules.editMgrModule('dashboard', dashboardArr);
});
+ // avoid creating node-exporter on the newly added host
+ // to favour the host draining process
+ it('should reduce the count for node-exporter', { retries: 2 }, () => {
+ services.editService('node-exporter', '3');
+ });
+
+ it('should check if monitoring stacks are running on the root host', { retries: 2 }, () => {
+ const monitoringStack = ['alertmanager', 'grafana', 'node-exporter', 'prometheus'];
+ hosts.clickTab('cd-host-details', 'ceph-node-00', 'Daemons');
+ for (const daemon of monitoringStack) {
+ cy.get('cd-host-details').within(() => {
+ services.checkServiceStatus(daemon);
+ });
+ }
+ });
+
it('should add one more host', () => {
hosts.navigateTo('add');
hosts.add(hostnames[3]);