2025-10-31 05:41:11,391 - INFO - Domain Default found not creating
2025-10-31 05:41:11,537 - INFO - Project ctest-TestBasicPolicy-84157436 not found, creating it
2025-10-31 05:41:11,967 - INFO - Created Project:ctest-TestBasicPolicy-84157436, ID : 765326b7-4eb4-419f-b6aa-59b8d5074a2a 
2025-10-31 05:41:13,506 - INFO - ================================================================================
2025-10-31 05:41:13,506 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-31 05:41:13,506 - 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-31 05:41:13,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with
2025-10-31 05:41:13,758 - INFO - Initial checks done. Running the testcase now
2025-10-31 05:41:13,758 - INFO - 
2025-10-31 05:41:14,356 - DEBUG - Response for create_network : {'network': {'id': 'ffff49c8-e218-4968-a6cb-d125e792f5d4', 'name': 'ctest-vn-72284674', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-72284674'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:41:14,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '6bc67c2e-5a8f-43c9-b4f9-a71605f95c61', 'name': '', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'network_id': 'ffff49c8-e218-4968-a6cb-d125e792f5d4', 'ip_version': 4, 'cidr': '158.92.28.0/26', 'allocation_pools': [{'start': '158.92.28.2', 'end': '158.92.28.62'}], 'gateway_ip': '158.92.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.92.28.2', 'tags': [], 'project_id': '765326b74eb4419fb6aa59b8d5074a2a'}}
2025-10-31 05:41:14,556 - INFO - Created VN ctest-vn-72284674
2025-10-31 05:41:14,609 - DEBUG - VN ctest-vn-72284674 UUID is ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:14,935 - DEBUG - Response for create_network : {'network': {'id': '9ed5cbb3-df74-4355-99d0-d1a6a2fc6065', 'name': 'ctest-vn-82267141', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-82267141'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:41:15,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '31af4d1f-adb8-48b1-a7de-3a7b5b8f3b02', 'name': '', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'network_id': '9ed5cbb3-df74-4355-99d0-d1a6a2fc6065', 'ip_version': 4, 'cidr': '81.4.119.192/26', 'allocation_pools': [{'start': '81.4.119.194', 'end': '81.4.119.254'}], 'gateway_ip': '81.4.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.4.119.194', 'tags': [], 'project_id': '765326b74eb4419fb6aa59b8d5074a2a'}}
2025-10-31 05:41:15,155 - INFO - Created VN ctest-vn-82267141
2025-10-31 05:41:15,205 - DEBUG - VN ctest-vn-82267141 UUID is 9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:15,357 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674, 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-84157436:ctest-vn-82267141, 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-31 05:41:15,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffff49c8-e218-4968-a6cb-d125e792f5d4', 'name': 'ctest-vn-72284674', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6bc67c2e-5a8f-43c9-b4f9-a71605f95c61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-72284674'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218']], 'subnet_ipam': [{'subnet_cidr': '158.92.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:41:15,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ed5cbb3-df74-4355-99d0-d1a6a2fc6065', 'name': 'ctest-vn-82267141', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31af4d1f-adb8-48b1-a7de-3a7b5b8f3b02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-82267141'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218']], 'subnet_ipam': [{'subnet_cidr': '81.4.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:41:16,057 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 05:41:16,401 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 05:41:16,430 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d
2025-10-31 05:41:16,444 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a
2025-10-31 05:41:16,519 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:16,531 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:16,543 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24
2025-10-31 05:41:16,553 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24
2025-10-31 05:41:16,562 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/18fd41fa-4eb6-4a21-9ec3-b8dab8636639
2025-10-31 05:41:16,570 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 05:41:16,570 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:16,582 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24
2025-10-31 05:41:16,600 - INFO - Verified VN network id 11 for VN ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:16,600 - INFO - Verifications in API Server for VN ctest-vn-72284674 passed
2025-10-31 05:41:16,600 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:16,610 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24
2025-10-31 05:41:16,620 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24
2025-10-31 05:41:16,627 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/18fd41fa-4eb6-4a21-9ec3-b8dab8636639
2025-10-31 05:41:16,639 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84157436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18446543725868370280', 'uuid-lslong': '12018929991297463764'}, 'enable': 'true', 'created': '2025-10-31T05:41:14', 'last-modified': '2025-10-31T05:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986430'}
2025-10-31 05:41:16,647 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 05:41:16,647 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72284674 passed
2025-10-31 05:41:16,647 - DEBUG - ====Verifying policy data for ctest-vn-72284674 in API_Server ======
2025-10-31 05:41:16,648 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 05:41:16,654 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d
2025-10-31 05:41:16,666 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a
2025-10-31 05:41:16,738 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4
2025-10-31 05:41:16,748 - DEBUG - ==>Verifying data for policy with id: 9593f243-e21b-43f1-b1dc-64a4e03a6ec7, fqn: ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218']
2025-10-31 05:41:16,748 - INFO - VN ctest-vn-72284674 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 05:41:16,748 - DEBUG - Verifying the vn in opserver
2025-10-31 05:41:16,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674 virtual network link  through opserver 10.0.0.137
2025-10-31 05:41:16,748 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 05:41:17,080 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 05:41:17,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674?flat'}
2025-10-31 05:41:17,134 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674 is found in opserver
2025-10-31 05:41:17,143 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 05:41:17,147 - DEBUG - VRF ids for VN ctest-vn-72284674: {}
2025-10-31 05:41:17,147 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 05:41:17,152 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d
2025-10-31 05:41:17,162 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a
2025-10-31 05:41:17,228 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:17,239 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:17,247 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1
2025-10-31 05:41:17,254 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1
2025-10-31 05:41:17,261 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/dc13780d-3e19-4d24-b925-e9a009ee0c62
2025-10-31 05:41:17,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 05:41:17,275 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:17,284 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1
2025-10-31 05:41:17,298 - INFO - Verified VN network id 12 for VN 9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:17,298 - INFO - Verifications in API Server for VN ctest-vn-82267141 passed
2025-10-31 05:41:17,298 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:17,307 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1
2025-10-31 05:41:17,313 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1
2025-10-31 05:41:17,318 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/dc13780d-3e19-4d24-b925-e9a009ee0c62
2025-10-31 05:41:17,330 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84157436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11445278001440506709', 'uuid-lslong': '11083589196588015717'}, 'enable': 'true', 'created': '2025-10-31T05:41:14', 'last-modified': '2025-10-31T05:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454324'}
2025-10-31 05:41:17,335 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 05:41:17,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82267141 passed
2025-10-31 05:41:17,335 - DEBUG - ====Verifying policy data for ctest-vn-82267141 in API_Server ======
2025-10-31 05:41:17,335 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 05:41:17,340 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d
2025-10-31 05:41:17,350 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a
2025-10-31 05:41:17,416 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065
2025-10-31 05:41:17,425 - DEBUG - ==>Verifying data for policy with id: 9593f243-e21b-43f1-b1dc-64a4e03a6ec7, fqn: ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218']
2025-10-31 05:41:17,425 - INFO - VN ctest-vn-82267141 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 05:41:17,425 - DEBUG - Verifying the vn in opserver
2025-10-31 05:41:17,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141 virtual network link  through opserver 10.0.0.137
2025-10-31 05:41:17,425 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 05:41:17,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141?flat'}
2025-10-31 05:41:17,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141 is found in opserver
2025-10-31 05:41:17,442 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 05:41:17,446 - DEBUG - VRF ids for VN ctest-vn-82267141: {}
2025-10-31 05:41:17,501 - DEBUG - Services list from nova: [