Hi Kevan,
Thanks for point this out.
I think with the latest update of jira, there is/was an issue in
displaying the logo in the primary issue view.
There is a thread on the infrastructure lists Feather logo no longer
present in Jira discussing it.
On the issue, https://issues.apache.org/jira/browse/VCL-579
In the attachment section, click on the pull down on the right and
select manage attachments. The logo is visible there.
Aaron
On Wed, May 23, 2012 at 1:16 PM, Kevan Miller kevan.mil...@gmail.com wrote:
A reminder that there is a Grant license to ASF for inclusion in ASF works
radio button when attaching files to Jira.
This is the clearest indication of a contributors intent. Please validate
this when accepting patches…
--kevan
On May 23, 2012, at 10:10 AM, fapee...@apache.org wrote:
Author: fapeeler
Date: Wed May 23 14:10:39 2012
New Revision: 1341871
URL: http://svn.apache.org/viewvc?rev=1341871view=rev
Log:
VCL-579
Based on contribtion from Dmitri Chebotarov, Thanks Dmitri
I added some addtional routines as placeholders for future code that might
need to be addressed.
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux/ESXi.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux/ESXi.pm
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux/ESXi.pm?rev=1341871r1=1341870r2=1341871view=diff
==
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux/ESXi.pm
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux/ESXi.pm Wed
May 23 14:10:39 2012
@@ -100,6 +100,289 @@ sub post_load {
#/
+=head2 reserve
+
+ Parameters :
+ Returns :
+ Description :
+
+=cut
+
+sub reserve {
+ my $self = shift;
+ if (ref($self) !~ /VCL::Module/i) {
+ notify($ERRORS{'CRITICAL'}, 0, subroutine was called as a function,
it must be called as a class method);
+ return 0;
+ }
+ notify($ERRORS{'DEBUG'}, 0, Enterered reserve() in the ESXi OS module);
+
+ return 1;
+}
+
+#/
+
+=head2 grant_access
+
+ Parameters :
+ Returns :
+ Description : this sub called when user clicks Connect button on web GUI
+
+=cut
+
+sub grant_access {
+ my $self = shift;
+ if (ref($self) !~ /VCL::Module/i) {
+ notify($ERRORS{'CRITICAL'}, 0, subroutine was called as a function,
it must be called as a class method);
+ return 0;
+ }
+
+ my $esxi_storage_mount_command;
+ my @commands;
+
+ my $computer_short_name = $self-data-get_computer_short_name();
+ my $computer_node_name = $self-data-get_computer_node_name();
+ notify($ERRORS{'OK'}, 0, $computer_short_name: processing with
ESXi.pm::grant_access());
+
+ my $username = $self-data-get_user_login_id();
+ my $reservation_password = $self-data-get_reservation_password();
+ my $management_node_keys = $self-data-get_management_node_keys();
+
+ my $vcld_config = local_read_vcld_config(/etc/vcl/vcld.conf);
+ my $esxi_storage_name_prefix =
$vcld_config-{ESXI_STORAGE_NAME_PREFIX};
+ my $esxi_storage_address = $vcld_config-{ESXI_STORAGE_ADDRESS};
+ my $esxi_storage_volume = $vcld_config-{ESXI_STORAGE_VOLUME};
+
+ $esxi_storage_mount_command = esxcfg-nas -a
$esxi_storage_name_prefix-$username -o $esxi_storage_address -s
$esxi_storage_volume/$username;
+
+ push(@commands, chmod +w /etc/pam.d/system-auth);
+ push(@commands, echo s/min=8,8,8,7,6/min=8,8,8,7,6 enforce=none/g
/tmp/sed);
+ push(@commands, sed -f /tmp/sed -i /etc/pam.d/system-auth);
+ push(@commands, rm -f /tmp/sed);
+ push(@commands, chmod -w /etc/pam.d/system-auth);
+ push(@commands, useradd -M $username);
+ push(@commands, groupadd root $username);
+ push(@commands, echo $reservation_password \| passwd $username
--stdin);
+ push(@commands, vim-cmd vimsvc/auth/entity_permission_add
vim.Folder:ha-folder-root root true Admin true);
+ push(@commands, $esxi_storage_mount_command) if
($esxi_storage_mount_command);
+ push(@commands, sleep 3);
+ push(@commands, echo /uuid.action/c /tmp/sed);
+ push(@commands, echo \\\$ a uuid.action = \\\keep\\\ /tmp/sed);
+ push(@commands, find /vmfs/volumes/$esxi_storage_name_prefix-$username/
-name *.vmx -exec sed -f /tmp/sed -i {} \\;);
+ push(@commands, rm -rf /tmp/sed);
+ push(@commands, find
/vmfs/volumes/$esxi_storage_name_prefix-$username/ -name *.vmx -exec vim-cmd
solo/registervm {} \\;);
+
+ foreach my $command (@commands) {
+ my ($exit_status, $output) = run_ssh_command($computer_node_name,
$management_node_keys, $command, root);
+ if (!defined($output)) {
+ notify($ERRORS{'WARNING'}, 0, failed to