[389-devel] Re: Build failed in Jenkins: NIGHTLY #71

2017-09-06 Thread William Brown
On Wed, 2017-09-06 at 09:25 +0200, Ludwig Krispenz wrote:
> I think this error
> *
> **Could not open the LDIF template file 
> '\''/usr/share/dirsrv/data/template-pampta.ldif'\''.  Error: No such file or 
> directory*
> 
> points to the changes in https://pagure.io/389-ds-base/issue/49371

I'll have a look at this today,


> 
> On 09/06/2017 06:37 AM, marey...@redhat.com wrote:
> > See 
> > 
> >
> > --
> > [...truncated 4714 lines...]
> >
> > tickets/ticket47462_test.py:155:
> > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> > _ _
> > ../../../lib389/lib389/__init__.py:2588: in upgrade
> >  DirSrvTools.runUpgrade(self.prefix, online)
> > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> > _ _
> >
> > prefix = '\''/usr'\'', online = True
> >
> >  @staticmethod
> >  def runUpgrade(prefix, online=True):
> >  '\'''\'''\''
> >  Run "setup-ds.pl --update"  We simply pass in one DirSrv 
> > isntance, and
> >  this will update all the instances that are in this prefix.  
> > For the
> >  update to work we must fix/adjust the permissions of the 
> > scripts in:
> >  
> >  /prefix/lib[64]/dirsrv/slapd-INSTANCE/
> >  '\'''\'''\''
> >  
> >  libdir = os.path.join(_ds_paths.lib_dir, '\''dirsrv'\'')
> >  
> >  # Gather all the instances so we can adjust the permissions, 
> > otherwise
> >  servers = []
> >  path = os.path.join(_ds_paths.sysconf_dir, '\''dirsrv'\'')
> >  for files in os.listdir(path):
> >  if files.startswith('\''slapd-'\'') and not 
> > files.endswith('\''.removed'\''):
> >  servers.append(os.path.join(libdir, files))
> >  
> >  if len(servers) == 0:
> >  # This should not happen
> >  log.fatal('\''runUpgrade: no servers found!'\'')
> >  assert False
> >  
> >  '\'''\'''\''
> >  The setup script calls things like 
> > /lib/dirsrv/slapd-instance/db2bak,
> >  etc, and when we run the setup perl script it gets permission 
> > denied
> >  as the default permissions are 750.  Adjust the permissions to 
> > 755.
> >  '\'''\'''\''
> >  for instance in servers:
> >  for files in os.listdir(instance):
> >  os.chmod(os.path.join(instance, files), 755)
> >  
> >  # Run the "upgrade"
> >  try:
> >  prog = os.path.join(_ds_paths.sbin_dir, PATH_SETUP_DS)
> >  process = subprocess.Popen([prog, '\''--update'\''], 
> > shell=False,
> > stdin=subprocess.PIPE)
> >  # Answer the interactive questions, as "--update" currently 
> > does
> >  # not work with INF files
> >  process.stdin.write('\''yes\n'\'')
> >  if(online):
> >  process.stdin.write('\''online\n'\'')
> >  for x in servers:
> >  process.stdin.write(DN_DM + '\''\n'\'')
> >  process.stdin.write(PW_DM + '\''\n'\'')
> >  else:
> >  process.stdin.write('\''offline\n'\'')
> >  process.stdin.close()
> >  process.wait()
> >  if process.returncode != 0:
> >  log.fatal('\''runUpgrade failed!  Error: %s '\'' % 
> > process.returncode)
> >>assert(False)
> > E   assert False
> >
> > ../../../lib389/lib389/tools.py:952: AssertionError
> >  Captured stdout setup 
> > -
> > OK group dirsrv exists
> > OK user dirsrv exists
> > OK group dirsrv exists
> > OK user dirsrv exists
> > ('\''Update succeeded: status '\'', '\''0 Total update succeeded'\'')
> >  Captured stderr setup 
> > -
> > INFO:lib389.topologies:Instance with parameters {'\''ldap-port'\'': 39001, 
> > '\''suffix'\'': '\''dc=example,dc=com'\'', '\''krb5_realm'\'': None, 
> > '\''deployed-dir'\'': '\''/usr'\'', '\''inst-backupdir'\'': '\''/tmp'\'', 
> > '\''hostname'\'': '\''localhost'\'', '\''server-id'\'': '\''master1'\'', 
> > '\''root-pw'\'': '\''password'\'', '\''root-dn'\'': '\''cn=Directory 
> > Manager'\'', '\''group-id'\'': None, '\''InstScriptsEnabled'\'': None, 
> > '\''user-id'\'': None, '\''ldap-secureport'\'': None} was created.
> > INFO:lib389:Found entry dn: cn=replrepl,cn=config
> > cn: bind dn pseudo user
> > cn: replrepl
> > objectClass: top
> > objectClass: person
> > sn: bind dn pseudo user
> > userPassword: 
> > {SSHA512}f6aZQxcJAMoeRJTIEGkMpmi0vRWkeZvZiLcgMJSG5eEbcB7gyp5C0Fcc5ACw72vjMAJauFL3uf3tIVsPP67LSkTPEXM3yYJg
> >
> >
> > INFO:lib389.topologies:Instance with parameters {'\''ldap-port'\'': 

[389-devel] Re: Build failed in Jenkins: NIGHTLY #71

2017-09-06 Thread Ludwig Krispenz

I think this error
*
**Could not open the LDIF template file 
'\''/usr/share/dirsrv/data/template-pampta.ldif'\''.  Error: No such file or 
directory*

points to the changes in https://pagure.io/389-ds-base/issue/49371

On 09/06/2017 06:37 AM, marey...@redhat.com wrote:

See 


--
[...truncated 4714 lines...]

tickets/ticket47462_test.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../lib389/lib389/__init__.py:2588: in upgrade
 DirSrvTools.runUpgrade(self.prefix, online)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

prefix = '\''/usr'\'', online = True

 @staticmethod
 def runUpgrade(prefix, online=True):
 '\'''\'''\''
 Run "setup-ds.pl --update"  We simply pass in one DirSrv isntance, 
and
 this will update all the instances that are in this prefix.  For 
the
 update to work we must fix/adjust the permissions of the scripts 
in:
 
 /prefix/lib[64]/dirsrv/slapd-INSTANCE/

 '\'''\'''\''
 
 libdir = os.path.join(_ds_paths.lib_dir, '\''dirsrv'\'')
 
 # Gather all the instances so we can adjust the permissions, otherwise

 servers = []
 path = os.path.join(_ds_paths.sysconf_dir, '\''dirsrv'\'')
 for files in os.listdir(path):
 if files.startswith('\''slapd-'\'') and not 
files.endswith('\''.removed'\''):
 servers.append(os.path.join(libdir, files))
 
 if len(servers) == 0:

 # This should not happen
 log.fatal('\''runUpgrade: no servers found!'\'')
 assert False
 
 '\'''\'''\''

 The setup script calls things like 
/lib/dirsrv/slapd-instance/db2bak,
 etc, and when we run the setup perl script it gets permission 
denied
 as the default permissions are 750.  Adjust the permissions to 755.
 '\'''\'''\''
 for instance in servers:
 for files in os.listdir(instance):
 os.chmod(os.path.join(instance, files), 755)
 
 # Run the "upgrade"

 try:
 prog = os.path.join(_ds_paths.sbin_dir, PATH_SETUP_DS)
 process = subprocess.Popen([prog, '\''--update'\''], shell=False,
stdin=subprocess.PIPE)
 # Answer the interactive questions, as "--update" currently does
 # not work with INF files
 process.stdin.write('\''yes\n'\'')
 if(online):
 process.stdin.write('\''online\n'\'')
 for x in servers:
 process.stdin.write(DN_DM + '\''\n'\'')
 process.stdin.write(PW_DM + '\''\n'\'')
 else:
 process.stdin.write('\''offline\n'\'')
 process.stdin.close()
 process.wait()
 if process.returncode != 0:
 log.fatal('\''runUpgrade failed!  Error: %s '\'' % 
process.returncode)

   assert(False)

E   assert False

../../../lib389/lib389/tools.py:952: AssertionError
 Captured stdout setup -
OK group dirsrv exists
OK user dirsrv exists
OK group dirsrv exists
OK user dirsrv exists
('\''Update succeeded: status '\'', '\''0 Total update succeeded'\'')
 Captured stderr setup -
INFO:lib389.topologies:Instance with parameters {'\''ldap-port'\'': 39001, 
'\''suffix'\'': '\''dc=example,dc=com'\'', '\''krb5_realm'\'': None, 
'\''deployed-dir'\'': '\''/usr'\'', '\''inst-backupdir'\'': '\''/tmp'\'', 
'\''hostname'\'': '\''localhost'\'', '\''server-id'\'': '\''master1'\'', 
'\''root-pw'\'': '\''password'\'', '\''root-dn'\'': '\''cn=Directory 
Manager'\'', '\''group-id'\'': None, '\''InstScriptsEnabled'\'': None, 
'\''user-id'\'': None, '\''ldap-secureport'\'': None} was created.
INFO:lib389:Found entry dn: cn=replrepl,cn=config
cn: bind dn pseudo user
cn: replrepl
objectClass: top
objectClass: person
sn: bind dn pseudo user
userPassword: 
{SSHA512}f6aZQxcJAMoeRJTIEGkMpmi0vRWkeZvZiLcgMJSG5eEbcB7gyp5C0Fcc5ACw72vjMAJauFL3uf3tIVsPP67LSkTPEXM3yYJg


INFO:lib389.topologies:Instance with parameters {'\''ldap-port'\'': 39002, 
'\''suffix'\'': '\''dc=example,dc=com'\'', '\''krb5_realm'\'': None, 
'\''deployed-dir'\'': '\''/usr'\'', '\''inst-backupdir'\'': '\''/tmp'\'', 
'\''hostname'\'': '\''localhost'\'', '\''server-id'\'': '\''master2'\'', 
'\''root-pw'\'': '\''password'\'', '\''root-dn'\'': '\''cn=Directory 
Manager'\'', '\''group-id'\'': None, '\''InstScriptsEnabled'\'': None, 
'\''user-id'\'': None, '\''ldap-secureport'\'': None} was created.
INFO:lib389:Found entry dn: cn=replrepl,cn=config
cn: bind dn pseudo user
cn: replrepl
objectClass: top