It looks like "seeded()" function returns "False" for some reason:
def seeded(): ''' Check whether service unit is already seeded ''' print ("TYTUS 1") print (resolve_data_dir()) print (os.path.exists(SEEDED_MARKER.format(data_dir=resolve_data_dir()))) print ("TYTUS 2") return os.path.exists(SEEDED_MARKER.format(data_dir=resolve_data_dir()))
log:
2017-10-09 14:29:17 INFO update-status TYTUS 1 2017-10-09 14:29:17 INFO update-status /var/lib/mysql 2017-10-09 14:29:17 INFO update-status False 2017-10-09 14:29:17 INFO update-status TYTUS 2
It looks like "seeded()" function returns "False" for some reason:
def seeded(): data_dir( )) exists( SEEDED_ MARKER. format( data_dir= resolve_ data_dir( )))) exists( SEEDED_ MARKER. format( data_dir= resolve_ data_dir( )))
''' Check whether service unit is already seeded '''
print ("TYTUS 1")
print (resolve_
print (os.path.
print ("TYTUS 2")
return os.path.
log:
2017-10-09 14:29:17 INFO update-status TYTUS 1
2017-10-09 14:29:17 INFO update-status /var/lib/mysql
2017-10-09 14:29:17 INFO update-status False
2017-10-09 14:29:17 INFO update-status TYTUS 2