Re: vFW Closed Loop - Operational Policy issues in Beijing #policy #usecaseui #kubernetes #install #drools


Cristina Precup
 

Hello Jorge,

This time, the PDP healthcheck was Successful. However, regarding the ping from brmsgw: no, it cannot do name resolution and thus cannot ping the three pods (it's using their kubernetes cluster IPs, whereas for the pdp, policydb it does not):

$ kubectl exec -it scapula-brmsgw-76cc87c68b-fjdfk -n onap -- bash -c "ping drools"
PING drools.onap.svc.cluster.local (10.43.116.134) 56(84) bytes of data.
^C
--- drools.onap.svc.cluster.local ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3016ms

$ kubectl exec -it scapula-brmsgw-76cc87c68b-fjdfk -n onap -- bash -c "ping nexus"
PING nexus.onap.svc.cluster.local (10.43.77.23) 56(84) bytes of data.
^C
--- nexus.onap.svc.cluster.local ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1007ms

$ kubectl exec -it scapula-brmsgw-76cc87c68b-fjdfk -n onap -- bash -c "ping message-router"
PING message-router.onap.svc.cluster.local (10.43.130.167) 56(84) bytes of data.
^C
--- message-router.onap.svc.cluster.local ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3022ms

$ kubectl exec -it scapula-brmsgw-76cc87c68b-fjdfk -n onap -- bash -c "ping pdp"
PING pdp.onap.svc.cluster.local (10.42.8.26) 56(84) bytes of data.
64 bytes from scapula-pdp-0.pdp.onap.svc.cluster.local (10.42.8.26): icmp_seq=1 ttl=62 time=0.620 ms
64 bytes from scapula-pdp-0.pdp.onap.svc.cluster.local (10.42.8.26): icmp_seq=2 ttl=62 time=0.652 ms
^C
--- pdp.onap.svc.cluster.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.620/0.636/0.652/0.016 ms
$ kubectl exec -it scapula-brmsgw-76cc87c68b-fjdfk -n onap -- bash -c "ping policydb"
PING policydb.onap.svc.cluster.local (10.42.8.12) 56(84) bytes of data.
64 bytes from wsalpha-worker-1.x.com (10.42.8.12): icmp_seq=1 ttl=62 time=1.76 ms
64 bytes from wsalpha-worker-1.x.com (10.42.8.12): icmp_seq=2 ttl=62 time=0.626 ms
64 bytes from wsalpha-worker-1.x.com (10.42.8.12): icmp_seq=3 ttl=62 time=0.721 ms
^C
--- policydb.onap.svc.cluster.local ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.626/1.036/1.762/0.515 ms

As for the Openstack issue: indeed, I made sure the names differ quite a lot (i.e., the generic-vnf-name is not a substring of the vnf-name). The stack has been deployed and this time there is traffic flowing. I had to switch to demo_artifacts_version=1.3.0 in the preload as I see that the 1.2.1 has been removed. However, this gives a build error in the SINC VM:

Making evel.o from evel.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel.c: In function 'evel_free_event':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel.c:461:7: warning: implicit declaration of function 'evel_free_hrtbt_field' [-Wimplicit-function-declaration]
evel_free_hrtbt_field((EVENT_HEARTBEAT_FIELD *)evt_ptr);
^
Making metadata.o from metadata.c
Making ring_buffer.o from ring_buffer.c
Making double_list.o from double_list.c
Making hashtable.o from hashtable.c
Making evel_event.o from evel_event.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event.c: In function 'evel_json_encode_eventtype':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event.c:591:11: warning: implicit declaration of function 'evel_json_encode_voice_quality' [-Wimplicit-function-declaration]
evel_json_encode_voice_quality(jbuf, (EVENT_VOICE_QUALITY *)event);
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event.c:595:11: warning: implicit declaration of function 'evel_json_encode_threshold_cross' [-Wimplicit-function-declaration]
evel_json_encode_threshold_cross(jbuf, (EVENT_THRESHOLD_CROSS *)event);
^
Making evel_fault.o from evel_fault.c
Making evel_mobile_flow.o from evel_mobile_flow.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_mobile_flow.c: In function 'evel_json_encode_mobile_flow':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_mobile_flow.c:965:7: warning: implicit declaration of function 'evel_throttle_suppress_nv_pair' [-Wimplicit-function-declaration]
if (!evel_throttle_suppress_nv_pair(jbuf->throttle_spec,
^
Making evel_option.o from evel_option.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_option.c: In function 'evel_force_option_intheader':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_option.c:393:18: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
option->object = value;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_option.c: In function 'evel_set_option_intheader':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_option.c:426:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
option->object = value;
^
Making evel_jsonobject.o from evel_jsonobject.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_jsonobject.c: In function 'evel_new_jsonobjinstance':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_jsonobject.c:99:14: warning: unused variable 'key' [-Wunused-variable]
jsmntok_t *key;
^
Making evel_other.o from evel_other.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c: In function 'evel_other_field_add_namedarray':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:172:3: warning: passing argument 2 of 'ht_get' discards 'const' qualifier from pointer target type [enabled by default]
list = (DLIST *)ht_get(other->namedarrays, hashname);
^
In file included from /opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel.h:44:0,
from /opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:29:
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/hashtable.h:95:7: note: expected 'char *' but argument is of type 'const char *'
void *ht_get( HASHTABLE_T *hashtable, char *key );
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:178:6: warning: passing argument 2 of 'ht_set' discards 'const' qualifier from pointer target type [enabled by default]
ht_set(other->namedarrays, hashname,(void*)nlist);
^
In file included from /opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel.h:44:0,
from /opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:29:
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/hashtable.h:86:6: note: expected 'char *' but argument is of type 'const char *'
void ht_set( HASHTABLE_T *hashtable, char *key, void *value );
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c: In function 'evel_json_encode_other':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:302:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( idx = 0; idx < ht->size; idx++ ) {
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:347:25: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
if(jsonobjp != NULL);
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:361:15: warning: implicit declaration of function 'evel_enc_kv_object' [-Wimplicit-function-declaration]
evel_enc_kv_object(jbuf, "objectInstance", jsonobjinst->jsonstring);
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:366:10: warning: variable 'item_added3' set but not used [-Wunused-but-set-variable]
bool item_added3 = false;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:277:8: warning: unused variable 'itm_added' [-Wunused-variable]
bool itm_added = false;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c: In function 'evel_free_other':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_other.c:474:16: warning: unused variable 'other_field_item' [-Wunused-variable]
DLIST_ITEM * other_field_item = NULL;
^
Making evel_json_buffer.o from evel_json_buffer.c
Making evel_reporting_measurement.o from evel_reporting_measurement.c
Making evel_heartbeat_fields.o from evel_heartbeat_fields.c
Making evel_sipsignaling.o from evel_sipsignaling.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_sipsignaling.c: In function 'evel_json_encode_signaling':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_sipsignaling.c:485:3: warning: implicit declaration of function 'evel_json_encode_vendor_field' [-Wimplicit-function-declaration]
evel_json_encode_vendor_field(jbuf, &event->vnfname_field);
^
Making evel_scaling_measurement.o from evel_scaling_measurement.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_scaling_measurement.c: In function 'evel_json_encode_measurement':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_scaling_measurement.c:3140:15: warning: implicit declaration of function 'evel_enc_kv_object' [-Wimplicit-function-declaration]
evel_enc_kv_object(jbuf, "objectInstance", jsonobjinst->jsonstring);
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_scaling_measurement.c:3145:10: warning: variable 'item_added3' set but not used [-Wunused-but-set-variable]
bool item_added3 = false;
^
Making evel_state_change.o from evel_state_change.c
Making evel_strings.o from evel_strings.c
Making evel_syslog.o from evel_syslog.c
Making evel_throttle.o from evel_throttle.c
Making evel_internal_event.o from evel_internal_event.c
Making evel_event_mgr.o from evel_event_mgr.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c: In function 'event_handler_initialize':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:373:5: warning: format not a string literal and no format arguments [-Wformat-security]
snprintf(local_address,sizeof(local_address),source_ip);
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:373:5: warning: format not a string literal and no format arguments [-Wformat-security]
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:390:5: warning: format not a string literal and no format arguments [-Wformat-security]
snprintf(local_address,sizeof(local_address),source_ip_bakup);
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:390:5: warning: format not a string literal and no format arguments [-Wformat-security]
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c: In function 'evel_postmulti_message':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:1219:7: warning: unused variable 'http_response_code' [-Wunused-variable]
int http_response_code = 0, i;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c: In function 'evel_post_multiapi':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:1477:16: warning: unused variable 'found' [-Wunused-variable]
int idx, found = 0;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:1368:25: warning: unused variable 'i' [-Wunused-variable]
int still_running,i;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:1365:11: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
int rc = EVEL_SUCCESS;
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c: In function 'evel_handle_event_response':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:1939:54: warning: unused parameter 'post' [-Wunused-parameter]
MEMORY_CHUNK * const post)
^
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c: At top level:
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_event_mgr.c:1996:6: warning: 'evel_handle_response_tokens' defined but not used [-Wunused-function]
bool evel_handle_response_tokens(const MEMORY_CHUNK * const chunk,
^
Making evel_threshold_cross.o from evel_threshold_cross.c
Making evel_voicequality.o from evel_voicequality.c
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_voicequality.c: In function 'evel_json_encode_voice_quality':
/opt/VES/evel/evel-library/bldjobs/../code/evel_library/evel_voicequality.c:489:3: warning: implicit declaration of function 'evel_json_encode_vendor_field' [-Wimplicit-function-declaration]
evel_json_encode_vendor_field(jbuf, &event->vendorVnfNameFields);
^
Making evel_logging.o from evel_logging.c
Making evel_batch.o from evel_batch.c
Making jsmn.o from jsmn.c
Linking API Shared Library
Linking API Static Library
Making VNF Reporting
vpp_measurement_reporter.c: In function 'main':
vpp_measurement_reporter.c:207:22: warning: passing argument 4 of 'evel_initialize' makes integer from pointer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'int' but argument is of type 'void *'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 5 of 'evel_initialize' makes pointer from integer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'const char * const' but argument is of type 'int'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 7 of 'evel_initialize' makes integer from pointer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'int' but argument is of type 'void *'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 8 of 'evel_initialize' makes integer from pointer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'int' but argument is of type 'void *'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 9 of 'evel_initialize' makes integer from pointer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'int' but argument is of type 'void *'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 14 of 'evel_initialize' makes integer from pointer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'long int' but argument is of type 'char *'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 15 of 'evel_initialize' makes integer from pointer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'long int' but argument is of type 'void *'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 16 of 'evel_initialize' makes pointer from integer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'const char * const' but argument is of type 'int'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: warning: passing argument 18 of 'evel_initialize' makes pointer from integer without a cast [enabled by default]
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: expected 'const char * const' but argument is of type 'int'
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
vpp_measurement_reporter.c:207:22: error: too few arguments to function 'evel_initialize'
1)) /* Verbosity */
^
In file included from vpp_measurement_reporter.c:25:0:
/opt/VES/evel/evel-library/code/VESreporting/../../code/evel_library/evel.h:1460:16: note: declared here
EVEL_ERR_CODES evel_initialize(const char * const fqdn,
^
make[1]: *** [vpp_measurement_reporter] Error 1
make: *** [vnf_reporting] Error 2
Adding system startup for /etc/init.d/vfirewall.sh ...
/etc/rc0.d/K20vfirewall.sh -> ../init.d/vfirewall.sh
/etc/rc1.d/K20vfirewall.sh -> ../init.d/vfirewall.sh
/etc/rc6.d/K20vfirewall.sh -> ../init.d/vfirewall.sh
/etc/rc2.d/S20vfirewall.sh -> ../init.d/vfirewall.sh
/etc/rc3.d/S20vfirewall.sh -> ../init.d/vfirewall.sh
/etc/rc4.d/S20vfirewall.sh -> ../init.d/vfirewall.sh
/etc/rc5.d/S20vfirewall.sh -> ../init.d/vfirewall.sh
vpp start/running, process 21564

I am not sure how this will impact the demo. Is there any recommended version for demo_artifacts_version and install_script_version?

Aside from this, there is actually traffic flowing from PG to SINC - a first timer! Thank you, Jorge.

Join onap-discuss@lists.onap.org to automatically receive all group messages.