DSC for Linux nxGroup Resource Property PreferredGroupID not working


hello,

a small background, i'm working in unix/linux world 20 years, since couple of weeks i'm trying familiar azure in special linux part of virtual machines in azure. personal microsoft experience is, lets say, "poor".

i've made start desired state config (dsc) linux able provision linux systems in azure.
i've prepared desktop to able load nx module.

setup:

downloaded , installed psdscforlinuxsetup.msi microsoft
http://www.microsoft.com/en-us/download/details.aspx?id=49150

this msi contains nx module , rpm's installed onto unix host.
on linux (oracle linux 7 vm) i've installed dsc-1.1.0-466.ssl_100.x64.rpm , omi-1.0.8.ssl_100.x64.rpm, far good. powershell access vm working fine.


the issue:

the nx module contains resource called nxgroup, resource able manage unix groups within vm.
1 of properties preferredgroupid. looks property not working @ all, @ least think is.

when running omiserver in debug mode see powershell sending preferredgroupid property trough, groups not created preferred group id (next available id used)

code:
nxgroup testinggrp {
   groupname = "testing"
   ensure = "present"
   preferredgroupid ="11224"
}

did investigation on linux system , searched python script called on linux os:
/opt/omi/lib/scripts/2.6x-2.7x/scripts/nxgroup.py

preferredgroupid defined , picked ps input. i sort of astonished find out when creating actual group preferredgroupid (unix groupadd -g flag) not used @ all:

retval = os.system(groupadd_path + " " + groupname)

    if retval != 0:
       print(
             groupadd_path + " " + groupname + " failed.", file=sys.stderr)
          lg().log('error', groupadd_path + " " + groupname + " failed.")         
return [-1]

workaround:
made quick , dirty workaround add if statement, when preferredgroupid  <> '' user -g flag add group else skip -g.

solution:
, that's question, how fix permanently, msi containing rpm , sources microsoft.
overlook something, 1 issue? or mistake in rpm source delivered microsoft?

the workaround acceptable in general want use, management perspective, default delivered rpm's

as understood raising calls @ microsoft not easiest way do, have support contracts unclear me if these kind of "bugs" can announced.

thanks helping me out , other people same issue, use input benefit.

regards

marcel houkes

hi,

thank posting.
i researching on , post update soon.

regards,
nithin rathnakar


Microsoft Azure  >  Azure Scripting and Command Line Tools



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

wcf-sql adapter bug for operation on same table

Error connecting to Azure Blob using Shared Access signature