Skip to content

Commit 2c215ca

Browse files
alvarosimonjrha
authored andcommitted
ncm-opennebula: remove old legacy code
1 parent 51f3f91 commit 2c215ca

File tree

5 files changed

+7
-18
lines changed

5 files changed

+7
-18
lines changed

ncm-opennebula/src/main/pan/components/opennebula/schema.pan

-3
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,6 @@ Set OpenNebula hypervisor options and their virtual clusters (if any)
324324
type opennebula_host = {
325325
@{set OpenNebula hosts type.}
326326
'host_hyp' : string = 'kvm' with match (SELF, '^(kvm|xen)$')
327-
@{set the network driver in your hosts.
328-
This option is not longer used by ONE >= 5.x versions.}
329-
'vnm_mad' ? string with match (SELF, '^(dummy|ovswitch|ovswitch_brcompat)$')
330327
@{Set the hypervisor cluster. Any new hypervisor is always included within
331328
"Default" cluster.
332329
Hosts can be in only one cluster at a time.}

ncm-opennebula/src/main/perl/OpenNebula/AII.pm

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ use NCM::Component::OpenNebula::Server qw($ONEADMIN_USER);
44
use Readonly;
55
use EDG::WP4::CCM::TextRender;
66

7-
Readonly my $MINIMAL_ONE_VERSION => version->new("4.8.0");
7+
Readonly my $MINIMAL_ONE_VERSION => version->new("5.0.0");
88
Readonly my $AII_OPENNEBULA_CONFIG => "/etc/aii/opennebula.conf";
99
Readonly my $HOSTNAME => "/system/network/hostname";
1010
Readonly my $DOMAINNAME => "/system/network/domainname";
1111
Readonly my $MAXITER => 20;
1212
Readonly my $TIMEOUT => 30;
1313
Readonly my $ONE_DEFAULT_URL => 'http://localhost:2633/RPC2';
1414
Readonly my $ONE_DEFAULT_PORT => 2633;
15-
Readonly my $BOOT_V4 => [qw(network hd)];
1615
Readonly my $BOOT_V5 => [qw(nic0 disk0)];
1716

1817
=head1 NAME
@@ -79,9 +78,6 @@ sub process_template_aii
7978
if ((defined $oneversion) and ($oneversion >= version->new("5.0.0"))) {
8079
$tree->{system}->{opennebula}->{boot} = $BOOT_V5;
8180
$self->verbose("BOOT section set to support OpenNebula versions >= 5.0.0");
82-
} else {
83-
$self->verbose("BOOT section set to support OpenNebula versions < 5.0.0");
84-
$tree->{system}->{opennebula}->{boot} = $BOOT_V4;
8581
};
8682

8783
my $tpl = EDG::WP4::CCM::TextRender->new(

ncm-opennebula/src/main/perl/OpenNebula/Host.pm

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ sub manage_hosts
9191
$new = $self->update_something($one, "host", $host, "QUATTOR = 1");
9292
if (defined($hosts->{$host}->{pin_policy})) {
9393
$new = $self->update_something($one, "host", $host, "PIN_POLICY = $hosts->{$host}->{pin_policy}");
94-
$self->verbose("HELLO pin defined: ", $hosts->{$host}->{pin_policy});
9594
};
9695
if (defined($new) and defined($hosts->{$host}->{cluster})) {
9796
$self->verbose("Host $host cluster is set to: ", $hosts->{$host}->{cluster});

ncm-opennebula/src/main/perl/opennebula.pm

+5-8
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,17 @@ To set up the initial cluster, some steps should be taken:
8686
8787
=over
8888
89-
=item 1. First install the required Ruby gems in your OpenNebula server (only for OpenNebula 5.10 or older).
90-
You can use OpenNebula installgems addon : L<https://github.com/OpenNebula/addon-installgems>.
91-
92-
=item 2. The OpenNebula server(s) should have passwordless ssh access as oneadmin user to all the host hosts of the cluster.
89+
=item 1. The OpenNebula server(s) should have passwordless ssh access as oneadmin user to all the host hosts of the cluster.
9390
e.g. by distributing the public key(s) of the OpenNebula host over the cluster.
9491
95-
=item 3. Start OpenNebula services: C<< # for i in '' -econe -gate -novnc -occi -sunstone; do service opennebula$i stop; done >>
92+
=item 2. Start OpenNebula services: C<< # for i in '' -econe -gate -novnc -occi -sunstone; do service opennebula$i stop; done >>
9693
97-
=item 4. Run the component a first time.
94+
=item 3. Run the component a first time.
9895
99-
=item 5. The new oneadmin password will be available from C<< /var/lib/one/.one/one_auth >> file.
96+
=item 4. The new oneadmin password will be available from C<< /var/lib/one/.one/one_auth >> file.
10097
The old auth files are stored with .quattor.backup extension.
10198
102-
=item 6. It is also possible to change sunstone service password, just include
99+
=item 5. It is also possible to change sunstone service password, just include
103100
'serveradmin' user and passwd within opennebula/users tree.
104101
In that case the component also updates the C<< sunstone_auth >> file.
105102

ncm-opennebula/src/test/perl/aii_vmtemplate.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $opennebulaaii->mock('read_one_aii_conf', Net::OpenNebula->new(url => "http://l
2020
user => "oneadmin",));
2121

2222
my $aii = NCM::Component::opennebula->new();
23-
my $oneversion = version->new("5.0.0");
23+
my $oneversion = version->new("6.0.0");
2424

2525
my $ttout = $aii->process_template_aii($cfg, "vmtemplate", $oneversion);
2626

0 commit comments

Comments
 (0)