2025-04-28 09:54:10,395 - INFO - Domain Default found not creating
2025-04-28 09:54:10,534 - INFO - Project ctest-TestBasicPolicy-50263144 not found, creating it
2025-04-28 09:54:11,001 - INFO - Created Project:ctest-TestBasicPolicy-50263144, ID : c73cbc4b-a972-4410-8b46-33c1477809b6
2025-04-28 09:54:12,559 - INFO - ================================================================================
2025-04-28 09:54:12,560 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 09:54:12,560 - 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-04-28 09:54:12,819 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-28 09:54:12,819 - INFO - Initial checks done. Running the testcase now
2025-04-28 09:54:12,819 - INFO -
2025-04-28 09:54:13,407 - DEBUG - Response for create_network : {'network': {'id': '470220e5-7628-4c5d-ace8-83aa32548990', 'name': 'ctest-vn-65548782', 'tenant_id': 'c73cbc4ba97244108b4633c1477809b6', 'project_id': 'c73cbc4ba97244108b4633c1477809b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-vn-65548782'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 09:54:13,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f599af1-5f1b-4a81-9d19-f010537ba0cc', 'name': '', 'tenant_id': 'c73cbc4ba97244108b4633c1477809b6', 'network_id': '470220e5-7628-4c5d-ace8-83aa32548990', 'ip_version': 4, 'cidr': '15.102.7.128/26', 'allocation_pools': [{'start': '15.102.7.130', 'end': '15.102.7.190'}], 'gateway_ip': '15.102.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.102.7.130', 'tags': [], 'project_id': 'c73cbc4ba97244108b4633c1477809b6'}}
2025-04-28 09:54:13,579 - INFO - Created VN ctest-vn-65548782
2025-04-28 09:54:13,632 - DEBUG - VN ctest-vn-65548782 UUID is 470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:13,957 - DEBUG - Response for create_network : {'network': {'id': '9c963cff-67a3-4c88-9e07-9aa40a40c5f1', 'name': 'ctest-vn-86205374', 'tenant_id': 'c73cbc4ba97244108b4633c1477809b6', 'project_id': 'c73cbc4ba97244108b4633c1477809b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-vn-86205374'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 09:54:14,159 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9cac7af-81c1-4c4c-8b2c-03bf1624a7ad', 'name': '', 'tenant_id': 'c73cbc4ba97244108b4633c1477809b6', 'network_id': '9c963cff-67a3-4c88-9e07-9aa40a40c5f1', 'ip_version': 4, 'cidr': '107.182.48.64/26', 'allocation_pools': [{'start': '107.182.48.66', 'end': '107.182.48.126'}], 'gateway_ip': '107.182.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.182.48.66', 'tags': [], 'project_id': 'c73cbc4ba97244108b4633c1477809b6'}}
2025-04-28 09:54:14,176 - INFO - Created VN ctest-vn-86205374
2025-04-28 09:54:14,228 - DEBUG - VN ctest-vn-86205374 UUID is 9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:14,376 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-65548782, 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-50263144:ctest-vn-86205374, 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-04-28 09:54:14,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '470220e5-7628-4c5d-ace8-83aa32548990', 'name': 'ctest-vn-65548782', 'tenant_id': 'c73cbc4ba97244108b4633c1477809b6', 'project_id': 'c73cbc4ba97244108b4633c1477809b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f599af1-5f1b-4a81-9d19-f010537ba0cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-vn-65548782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-policy-allow-all-09168944']], 'subnet_ipam': [{'subnet_cidr': '15.102.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 09:54:14,939 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c963cff-67a3-4c88-9e07-9aa40a40c5f1', 'name': 'ctest-vn-86205374', 'tenant_id': 'c73cbc4ba97244108b4633c1477809b6', 'project_id': 'c73cbc4ba97244108b4633c1477809b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9cac7af-81c1-4c4c-8b2c-03bf1624a7ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-vn-86205374'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-policy-allow-all-09168944']], 'subnet_ipam': [{'subnet_cidr': '107.182.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 09:54:15,116 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 09:54:15,455 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 09:54:15,484 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea0fe060-ea41-49b3-9569-664009a7d812
2025-04-28 09:54:15,498 - DEBUG - Requesting: http://10.0.0.254:8082/project/c73cbc4b-a972-4410-8b46-33c1477809b6
2025-04-28 09:54:15,577 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:15,589 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:15,599 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2a5e8889-1bf2-4bbd-9da1-a0792eb52ead
2025-04-28 09:54:15,606 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2a5e8889-1bf2-4bbd-9da1-a0792eb52ead
2025-04-28 09:54:15,613 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1f90a172-96d4-4a31-a212-20f4fdbc93b9
2025-04-28 09:54:15,619 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 09:54:15,619 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:15,628 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2a5e8889-1bf2-4bbd-9da1-a0792eb52ead
2025-04-28 09:54:15,641 - INFO - Verified VN network id 8 for VN 470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:15,641 - INFO - Verifications in API Server for VN ctest-vn-65548782 passed
2025-04-28 09:54:15,642 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:15,653 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2a5e8889-1bf2-4bbd-9da1-a0792eb52ead
2025-04-28 09:54:15,661 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2a5e8889-1bf2-4bbd-9da1-a0792eb52ead
2025-04-28 09:54:15,670 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1f90a172-96d4-4a31-a212-20f4fdbc93b9
2025-04-28 09:54:15,684 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-65548782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50263144', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5116688296548256861', 'uuid-lslong': '12459353136132557200'}, 'enable': 'true', 'created': '2025-04-28T09:54:13', 'last-modified': '2025-04-28T09:54:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020980'}
2025-04-28 09:54:15,694 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 09:54:15,694 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65548782 passed
2025-04-28 09:54:15,694 - DEBUG - ====Verifying policy data for ctest-vn-65548782 in API_Server ======
2025-04-28 09:54:15,694 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 09:54:15,700 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea0fe060-ea41-49b3-9569-664009a7d812
2025-04-28 09:54:15,714 - DEBUG - Requesting: http://10.0.0.254:8082/project/c73cbc4b-a972-4410-8b46-33c1477809b6
2025-04-28 09:54:15,794 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/470220e5-7628-4c5d-ace8-83aa32548990
2025-04-28 09:54:15,805 - DEBUG - ==>Verifying data for policy with id: e027276c-21af-4a19-8b4c-8aa3914ead12, fqn: ['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-policy-allow-all-09168944']
2025-04-28 09:54:15,805 - INFO - VN ctest-vn-65548782 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 09:54:15,805 - DEBUG - Verifying the vn in opserver
2025-04-28 09:54:15,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-65548782 virtual network link through opserver 10.0.0.254
2025-04-28 09:54:15,805 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 09:54:16,137 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 09:54:16,191 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-65548782', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-65548782?flat'}
2025-04-28 09:54:16,191 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-65548782 is found in opserver
2025-04-28 09:54:16,203 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 09:54:16,208 - DEBUG - VRF ids for VN ctest-vn-65548782: {}
2025-04-28 09:54:16,208 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 09:54:16,214 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea0fe060-ea41-49b3-9569-664009a7d812
2025-04-28 09:54:16,226 - DEBUG - Requesting: http://10.0.0.254:8082/project/c73cbc4b-a972-4410-8b46-33c1477809b6
2025-04-28 09:54:16,304 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:16,320 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:16,331 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3caa41e5-1da9-422a-9896-4fbbc7963514
2025-04-28 09:54:16,339 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3caa41e5-1da9-422a-9896-4fbbc7963514
2025-04-28 09:54:16,346 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b5c2ea1-5ea9-4149-909f-dfc3e52883d5
2025-04-28 09:54:16,352 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 09:54:16,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:16,362 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3caa41e5-1da9-422a-9896-4fbbc7963514
2025-04-28 09:54:16,377 - INFO - Verified VN network id 9 for VN 9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:16,377 - INFO - Verifications in API Server for VN ctest-vn-86205374 passed
2025-04-28 09:54:16,377 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:16,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3caa41e5-1da9-422a-9896-4fbbc7963514
2025-04-28 09:54:16,395 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3caa41e5-1da9-422a-9896-4fbbc7963514
2025-04-28 09:54:16,402 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b5c2ea1-5ea9-4149-909f-dfc3e52883d5
2025-04-28 09:54:16,415 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-86205374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50263144', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11283272984076438664', 'uuid-lslong': '11387240212166919665'}, 'enable': 'true', 'created': '2025-04-28T09:54:13', 'last-modified': '2025-04-28T09:54:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499190'}
2025-04-28 09:54:16,421 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 09:54:16,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86205374 passed
2025-04-28 09:54:16,421 - DEBUG - ====Verifying policy data for ctest-vn-86205374 in API_Server ======
2025-04-28 09:54:16,422 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 09:54:16,427 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea0fe060-ea41-49b3-9569-664009a7d812
2025-04-28 09:54:16,439 - DEBUG - Requesting: http://10.0.0.254:8082/project/c73cbc4b-a972-4410-8b46-33c1477809b6
2025-04-28 09:54:16,515 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9c963cff-67a3-4c88-9e07-9aa40a40c5f1
2025-04-28 09:54:16,525 - DEBUG - ==>Verifying data for policy with id: e027276c-21af-4a19-8b4c-8aa3914ead12, fqn: ['default-domain', 'ctest-TestBasicPolicy-50263144', 'ctest-policy-allow-all-09168944']
2025-04-28 09:54:16,525 - INFO - VN ctest-vn-86205374 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 09:54:16,525 - DEBUG - Verifying the vn in opserver
2025-04-28 09:54:16,525 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-86205374 virtual network link through opserver 10.0.0.254
2025-04-28 09:54:16,525 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 09:54:16,535 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-86205374', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-86205374?flat'}
2025-04-28 09:54:16,535 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50263144:ctest-vn-86205374 is found in opserver
2025-04-28 09:54:16,546 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 09:54:16,551 - DEBUG - VRF ids for VN ctest-vn-86205374: {}
2025-04-28 09:54:16,606 - DEBUG - Services list from nova: [