2025-08-19 12:58:00,875 - INFO - Domain Default found not creating
2025-08-19 12:58:01,021 - INFO - Project ctest-TestBasicPolicy-09374608 not found, creating it
2025-08-19 12:58:01,448 - INFO - Created Project:ctest-TestBasicPolicy-09374608, ID : 53f6927d-255e-45f2-aea1-7b2867a6e226
2025-08-19 12:58:02,727 - INFO - ================================================================================
2025-08-19 12:58:02,727 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-19 12:58:02,727 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-08-19 12:58:02,981 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with
2025-08-19 12:58:02,981 - INFO - Initial checks done. Running the testcase now
2025-08-19 12:58:02,981 - INFO -
2025-08-19 12:58:03,502 - DEBUG - Response for create_network : {'network': {'id': '12d64f56-3296-4825-ad4b-2a2892b7ea4c', 'name': 'ctest-vn-63833284', 'tenant_id': '53f6927d255e45f2aea17b2867a6e226', 'project_id': '53f6927d255e45f2aea17b2867a6e226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-vn-63833284'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 12:58:03,632 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b4e8742-a737-4077-a197-629cd5906415', 'name': '', 'tenant_id': '53f6927d255e45f2aea17b2867a6e226', 'network_id': '12d64f56-3296-4825-ad4b-2a2892b7ea4c', 'ip_version': 4, 'cidr': '202.6.21.128/26', 'allocation_pools': [{'start': '202.6.21.130', 'end': '202.6.21.190'}], 'gateway_ip': '202.6.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.6.21.130', 'tags': [], 'project_id': '53f6927d255e45f2aea17b2867a6e226'}}
2025-08-19 12:58:03,647 - INFO - Created VN ctest-vn-63833284
2025-08-19 12:58:03,700 - DEBUG - VN ctest-vn-63833284 UUID is 12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:03,997 - DEBUG - Response for create_network : {'network': {'id': 'b881c2d3-ee1f-43c7-8a32-f6baf4960111', 'name': 'ctest-vn-48727776', 'tenant_id': '53f6927d255e45f2aea17b2867a6e226', 'project_id': '53f6927d255e45f2aea17b2867a6e226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-vn-48727776'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 12:58:04,159 - DEBUG - Response for create_subnet : {'subnet': {'id': '06360a6a-3197-46ce-8293-890aa620a971', 'name': '', 'tenant_id': '53f6927d255e45f2aea17b2867a6e226', 'network_id': 'b881c2d3-ee1f-43c7-8a32-f6baf4960111', 'ip_version': 4, 'cidr': '157.13.190.128/26', 'allocation_pools': [{'start': '157.13.190.130', 'end': '157.13.190.190'}], 'gateway_ip': '157.13.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.13.190.130', 'tags': [], 'project_id': '53f6927d255e45f2aea17b2867a6e226'}}
2025-08-19 12:58:04,174 - INFO - Created VN ctest-vn-48727776
2025-08-19 12:58:04,224 - DEBUG - VN ctest-vn-48727776 UUID is b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:04,368 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-63833284, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-48727776, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-08-19 12:58:04,680 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12d64f56-3296-4825-ad4b-2a2892b7ea4c', 'name': 'ctest-vn-63833284', 'tenant_id': '53f6927d255e45f2aea17b2867a6e226', 'project_id': '53f6927d255e45f2aea17b2867a6e226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b4e8742-a737-4077-a197-629cd5906415'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-vn-63833284'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-policy-allow-all-27459749']], 'subnet_ipam': [{'subnet_cidr': '202.6.21.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 12:58:04,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b881c2d3-ee1f-43c7-8a32-f6baf4960111', 'name': 'ctest-vn-48727776', 'tenant_id': '53f6927d255e45f2aea17b2867a6e226', 'project_id': '53f6927d255e45f2aea17b2867a6e226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06360a6a-3197-46ce-8293-890aa620a971'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-vn-48727776'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-policy-allow-all-27459749']], 'subnet_ipam': [{'subnet_cidr': '157.13.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 12:58:05,088 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-19 12:58:05,379 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-19 12:58:05,402 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc
2025-08-19 12:58:05,413 - DEBUG - Requesting: http://10.0.0.57:8082/project/53f6927d-255e-45f2-aea1-7b2867a6e226
2025-08-19 12:58:05,480 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:05,488 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:05,495 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7e6fdb85-0452-4e2a-afb8-816fe3c64820
2025-08-19 12:58:05,501 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7e6fdb85-0452-4e2a-afb8-816fe3c64820
2025-08-19 12:58:05,505 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/45fdee37-306f-4a9a-a730-c13c73069739
2025-08-19 12:58:05,510 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 12:58:05,510 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:05,517 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7e6fdb85-0452-4e2a-afb8-816fe3c64820
2025-08-19 12:58:05,527 - INFO - Verified VN network id 12 for VN 12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:05,528 - INFO - Verifications in API Server for VN ctest-vn-63833284 passed
2025-08-19 12:58:05,528 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:05,535 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7e6fdb85-0452-4e2a-afb8-816fe3c64820
2025-08-19 12:58:05,540 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7e6fdb85-0452-4e2a-afb8-816fe3c64820
2025-08-19 12:58:05,545 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/45fdee37-306f-4a9a-a730-c13c73069739
2025-08-19 12:58:05,555 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-63833284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09374608', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1357359569333274661', 'uuid-lslong': '12487120745563417164'}, 'enable': 'true', 'created': '2025-08-19T12:58:03', 'last-modified': '2025-08-19T12:58:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904743'}
2025-08-19 12:58:05,561 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 12:58:05,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63833284 passed
2025-08-19 12:58:05,561 - DEBUG - ====Verifying policy data for ctest-vn-63833284 in API_Server ======
2025-08-19 12:58:05,561 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-19 12:58:05,565 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc
2025-08-19 12:58:05,574 - DEBUG - Requesting: http://10.0.0.57:8082/project/53f6927d-255e-45f2-aea1-7b2867a6e226
2025-08-19 12:58:05,638 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/12d64f56-3296-4825-ad4b-2a2892b7ea4c
2025-08-19 12:58:05,646 - DEBUG - ==>Verifying data for policy with id: d69c10b8-ea86-44a8-b47c-a618ce7c395e, fqn: ['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-policy-allow-all-27459749']
2025-08-19 12:58:05,646 - INFO - VN ctest-vn-63833284 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 12:58:05,646 - DEBUG - Verifying the vn in opserver
2025-08-19 12:58:05,646 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-63833284 virtual network link through opserver 10.0.0.57
2025-08-19 12:58:05,646 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-19 12:58:05,933 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-19 12:58:05,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-63833284', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-63833284?flat'}
2025-08-19 12:58:05,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-63833284 is found in opserver
2025-08-19 12:58:05,989 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 12:58:05,993 - DEBUG - VRF ids for VN ctest-vn-63833284: {}
2025-08-19 12:58:05,993 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-19 12:58:05,998 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc
2025-08-19 12:58:06,007 - DEBUG - Requesting: http://10.0.0.57:8082/project/53f6927d-255e-45f2-aea1-7b2867a6e226
2025-08-19 12:58:06,077 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:06,087 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:06,094 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5b21ab43-dcbd-474c-a60b-62c801cfb57a
2025-08-19 12:58:06,099 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5b21ab43-dcbd-474c-a60b-62c801cfb57a
2025-08-19 12:58:06,103 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4ad4fcfb-0a2d-45af-9d41-8b79f1e3d7ae
2025-08-19 12:58:06,108 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 12:58:06,108 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:06,115 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5b21ab43-dcbd-474c-a60b-62c801cfb57a
2025-08-19 12:58:06,126 - INFO - Verified VN network id 13 for VN b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:06,126 - INFO - Verifications in API Server for VN ctest-vn-48727776 passed
2025-08-19 12:58:06,126 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:06,134 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5b21ab43-dcbd-474c-a60b-62c801cfb57a
2025-08-19 12:58:06,139 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5b21ab43-dcbd-474c-a60b-62c801cfb57a
2025-08-19 12:58:06,144 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4ad4fcfb-0a2d-45af-9d41-8b79f1e3d7ae
2025-08-19 12:58:06,153 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-48727776', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09374608', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13295121790463329223', 'uuid-lslong': '9958293008897409297'}, 'enable': 'true', 'created': '2025-08-19T12:58:03', 'last-modified': '2025-08-19T12:58:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.274402'}
2025-08-19 12:58:06,157 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 12:58:06,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48727776 passed
2025-08-19 12:58:06,158 - DEBUG - ====Verifying policy data for ctest-vn-48727776 in API_Server ======
2025-08-19 12:58:06,158 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-19 12:58:06,161 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc
2025-08-19 12:58:06,170 - DEBUG - Requesting: http://10.0.0.57:8082/project/53f6927d-255e-45f2-aea1-7b2867a6e226
2025-08-19 12:58:06,237 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b881c2d3-ee1f-43c7-8a32-f6baf4960111
2025-08-19 12:58:06,244 - DEBUG - ==>Verifying data for policy with id: d69c10b8-ea86-44a8-b47c-a618ce7c395e, fqn: ['default-domain', 'ctest-TestBasicPolicy-09374608', 'ctest-policy-allow-all-27459749']
2025-08-19 12:58:06,244 - INFO - VN ctest-vn-48727776 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 12:58:06,244 - DEBUG - Verifying the vn in opserver
2025-08-19 12:58:06,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-48727776 virtual network link through opserver 10.0.0.57
2025-08-19 12:58:06,244 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-19 12:58:06,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-48727776', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-48727776?flat'}
2025-08-19 12:58:06,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09374608:ctest-vn-48727776 is found in opserver
2025-08-19 12:58:06,261 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 12:58:06,265 - DEBUG - VRF ids for VN ctest-vn-48727776: {}
2025-08-19 12:58:06,311 - DEBUG - Services list from nova: [