2025-10-06 22:49:40,709 - INFO - Domain Default found not creating
2025-10-06 22:49:40,850 - INFO - Project ctest-TestBasicPolicy-26520722 not found, creating it
2025-10-06 22:49:41,292 - INFO - Created Project:ctest-TestBasicPolicy-26520722, ID : cd9100d9-af7c-4585-9013-2c0e62ca551b
2025-10-06 22:49:42,691 - INFO - ================================================================================
2025-10-06 22:49:42,691 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 22:49:42,691 - 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-10-06 22:49:42,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-06 22:49:42,952 - INFO - Initial checks done. Running the testcase now
2025-10-06 22:49:42,952 - INFO -
2025-10-06 22:49:43,526 - DEBUG - Response for create_network : {'network': {'id': '3a2d3819-d86d-47b6-8d2c-f6fc43237cc0', 'name': 'ctest-vn-62190769', 'tenant_id': 'cd9100d9af7c458590132c0e62ca551b', 'project_id': 'cd9100d9af7c458590132c0e62ca551b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-vn-62190769'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 22:49:43,732 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9a3fa3f-594f-4afe-902e-b1a18de57777', 'name': '', 'tenant_id': 'cd9100d9af7c458590132c0e62ca551b', 'network_id': '3a2d3819-d86d-47b6-8d2c-f6fc43237cc0', 'ip_version': 4, 'cidr': '162.248.9.0/26', 'allocation_pools': [{'start': '162.248.9.2', 'end': '162.248.9.62'}], 'gateway_ip': '162.248.9.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.248.9.2', 'tags': [], 'project_id': 'cd9100d9af7c458590132c0e62ca551b'}}
2025-10-06 22:49:43,748 - INFO - Created VN ctest-vn-62190769
2025-10-06 22:49:43,799 - DEBUG - VN ctest-vn-62190769 UUID is 3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:44,076 - DEBUG - Response for create_network : {'network': {'id': 'ed58d184-cee9-4069-93c8-4c0a978a9eda', 'name': 'ctest-vn-17032458', 'tenant_id': 'cd9100d9af7c458590132c0e62ca551b', 'project_id': 'cd9100d9af7c458590132c0e62ca551b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-vn-17032458'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 22:49:44,217 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2b73ff2-df84-4c59-b671-4e9c276a962d', 'name': '', 'tenant_id': 'cd9100d9af7c458590132c0e62ca551b', 'network_id': 'ed58d184-cee9-4069-93c8-4c0a978a9eda', 'ip_version': 4, 'cidr': '208.244.23.192/26', 'allocation_pools': [{'start': '208.244.23.194', 'end': '208.244.23.254'}], 'gateway_ip': '208.244.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.244.23.194', 'tags': [], 'project_id': 'cd9100d9af7c458590132c0e62ca551b'}}
2025-10-06 22:49:44,239 - INFO - Created VN ctest-vn-17032458
2025-10-06 22:49:44,291 - DEBUG - VN ctest-vn-17032458 UUID is ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:44,443 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-62190769, 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-26520722:ctest-vn-17032458, 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-10-06 22:49:44,730 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a2d3819-d86d-47b6-8d2c-f6fc43237cc0', 'name': 'ctest-vn-62190769', 'tenant_id': 'cd9100d9af7c458590132c0e62ca551b', 'project_id': 'cd9100d9af7c458590132c0e62ca551b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9a3fa3f-594f-4afe-902e-b1a18de57777'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-vn-62190769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-policy-allow-all-25402753']], 'subnet_ipam': [{'subnet_cidr': '162.248.9.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 22:49:45,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed58d184-cee9-4069-93c8-4c0a978a9eda', 'name': 'ctest-vn-17032458', 'tenant_id': 'cd9100d9af7c458590132c0e62ca551b', 'project_id': 'cd9100d9af7c458590132c0e62ca551b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2b73ff2-df84-4c59-b671-4e9c276a962d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-vn-17032458'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-policy-allow-all-25402753']], 'subnet_ipam': [{'subnet_cidr': '208.244.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 22:49:45,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 22:49:45,487 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 22:49:45,519 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2
2025-10-06 22:49:45,531 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd9100d9-af7c-4585-9013-2c0e62ca551b
2025-10-06 22:49:45,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:45,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:45,619 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42a08f8d-a688-4e2d-9c3b-933697c01890
2025-10-06 22:49:45,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42a08f8d-a688-4e2d-9c3b-933697c01890
2025-10-06 22:49:45,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f34a44e-8298-4143-b860-0c1584d267cb
2025-10-06 22:49:45,637 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 22:49:45,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:45,645 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42a08f8d-a688-4e2d-9c3b-933697c01890
2025-10-06 22:49:45,658 - INFO - Verified VN network id 12 for VN 3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:45,658 - INFO - Verifications in API Server for VN ctest-vn-62190769 passed
2025-10-06 22:49:45,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:45,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42a08f8d-a688-4e2d-9c3b-933697c01890
2025-10-06 22:49:45,673 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42a08f8d-a688-4e2d-9c3b-933697c01890
2025-10-06 22:49:45,678 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f34a44e-8298-4143-b860-0c1584d267cb
2025-10-06 22:49:45,688 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-62190769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26520722', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4192068511808178102', 'uuid-lslong': '10172777221641698496'}, 'enable': 'true', 'created': '2025-10-06T22:49:43', 'last-modified': '2025-10-06T22:49:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980438'}
2025-10-06 22:49:45,693 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 22:49:45,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62190769 passed
2025-10-06 22:49:45,693 - DEBUG - ====Verifying policy data for ctest-vn-62190769 in API_Server ======
2025-10-06 22:49:45,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 22:49:45,700 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2
2025-10-06 22:49:45,709 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd9100d9-af7c-4585-9013-2c0e62ca551b
2025-10-06 22:49:45,782 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3a2d3819-d86d-47b6-8d2c-f6fc43237cc0
2025-10-06 22:49:45,792 - DEBUG - ==>Verifying data for policy with id: 949f4798-8227-4280-82ab-9117d6ef3750, fqn: ['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-policy-allow-all-25402753']
2025-10-06 22:49:45,792 - INFO - VN ctest-vn-62190769 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 22:49:45,792 - DEBUG - Verifying the vn in opserver
2025-10-06 22:49:45,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-62190769 virtual network link through opserver 10.0.0.38
2025-10-06 22:49:45,792 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-06 22:49:46,088 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-06 22:49:46,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-62190769', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-62190769?flat'}
2025-10-06 22:49:46,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-62190769 is found in opserver
2025-10-06 22:49:46,164 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 22:49:46,169 - DEBUG - VRF ids for VN ctest-vn-62190769: {}
2025-10-06 22:49:46,169 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 22:49:46,175 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2
2025-10-06 22:49:46,185 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd9100d9-af7c-4585-9013-2c0e62ca551b
2025-10-06 22:49:46,253 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:46,263 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:46,271 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348d3585-dc0c-41f6-83cd-882fa593f820
2025-10-06 22:49:46,277 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348d3585-dc0c-41f6-83cd-882fa593f820
2025-10-06 22:49:46,283 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c10249a5-530b-4523-a3d0-2ebf3c814809
2025-10-06 22:49:46,288 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 22:49:46,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:46,295 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348d3585-dc0c-41f6-83cd-882fa593f820
2025-10-06 22:49:46,306 - INFO - Verified VN network id 13 for VN ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:46,306 - INFO - Verifications in API Server for VN ctest-vn-17032458 passed
2025-10-06 22:49:46,306 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:46,314 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348d3585-dc0c-41f6-83cd-882fa593f820
2025-10-06 22:49:46,320 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348d3585-dc0c-41f6-83cd-882fa593f820
2025-10-06 22:49:46,326 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c10249a5-530b-4523-a3d0-2ebf3c814809
2025-10-06 22:49:46,335 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-17032458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26520722', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17102649953276739689', 'uuid-lslong': '10648844927293365978'}, 'enable': 'true', 'created': '2025-10-06T22:49:44', 'last-modified': '2025-10-06T22:49:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399997'}
2025-10-06 22:49:46,339 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 22:49:46,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17032458 passed
2025-10-06 22:49:46,340 - DEBUG - ====Verifying policy data for ctest-vn-17032458 in API_Server ======
2025-10-06 22:49:46,340 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 22:49:46,344 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2
2025-10-06 22:49:46,354 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd9100d9-af7c-4585-9013-2c0e62ca551b
2025-10-06 22:49:46,425 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed58d184-cee9-4069-93c8-4c0a978a9eda
2025-10-06 22:49:46,435 - DEBUG - ==>Verifying data for policy with id: 949f4798-8227-4280-82ab-9117d6ef3750, fqn: ['default-domain', 'ctest-TestBasicPolicy-26520722', 'ctest-policy-allow-all-25402753']
2025-10-06 22:49:46,436 - INFO - VN ctest-vn-17032458 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 22:49:46,436 - DEBUG - Verifying the vn in opserver
2025-10-06 22:49:46,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-17032458 virtual network link through opserver 10.0.0.38
2025-10-06 22:49:46,436 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-06 22:49:46,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-17032458', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-17032458?flat'}
2025-10-06 22:49:46,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26520722:ctest-vn-17032458 is found in opserver
2025-10-06 22:49:46,456 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 22:49:46,460 - DEBUG - VRF ids for VN ctest-vn-17032458: {}
2025-10-06 22:49:46,531 - DEBUG - Services list from nova: [