biemond / biemond-orawls

Puppet 3/4 module for WebLogic provisioning module ( Linux & Solaris )
Apache License 2.0
63 stars 104 forks source link

wls_datasource doesnt update DatasourceType #469

Open cbrdy opened 7 years ago

cbrdy commented 7 years ago

@biemond,

I'm seeing this weird issue not sure why it happens but this is what I have seen so far. I tried to get the attribute details using what you do in set_attribute_value and get_attribute_value. This is what I see. Why is DatasourceType shows None while for others the values are just fine.


wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> fields=getMBI().getAttribute('DatasourceType').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> print fields
array(java.lang.Object,[None, None, None])
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> fields=getMBI().getAttribute('Name').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> print fields
array(java.lang.Object,[None, None, None])
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCXAParams/omdbDS !> fields=getMBI().getAttribute('KeepXaConnTillTxComplete').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCXAParams/omdbDS !> print fields
array(java.lang.Object,['boolean', 1, None])
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCDataSourceParams/omdbDS !> fields=getMBI().getAttribute('GlobalTransactionsProtocol').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCDataSourceParams/omdbDS !> print fields
array(java.lang.Object,[None, 'OnePhaseCommit', None])
cbrdy commented 7 years ago

what I noticed, I cannot set my datasource type to GENERIC. the module is resetting the type to AGL.

biemond commented 7 years ago

ok, I guess wls does this on purpose or it is a bug. I will check it out

cbrdy commented 7 years ago

that's what I think too. could be a weblogic bug.

cbrdy commented 7 years ago

My sincere apologies. There was an issue with our r10k which caused our old code to send to the servers. This has been rectified now. I can update the datasource from AGL to GENERIC.