2025-04-25 00:11:54,496 - INFO - Domain Default found not creating
2025-04-25 00:11:54,614 - INFO - Project ctest-TestBasicPolicy-35852979 not found, creating it
2025-04-25 00:11:55,064 - INFO - Created Project:ctest-TestBasicPolicy-35852979, ID : ac6e5098-3109-4c22-887c-158a35fbc240
2025-04-25 00:11:56,387 - INFO - ================================================================================
2025-04-25 00:11:56,388 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 00:11:56,388 - 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-25 00:11:56,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-04-25 00:11:56,643 - INFO - Initial checks done. Running the testcase now
2025-04-25 00:11:56,643 - INFO -
2025-04-25 00:11:57,269 - DEBUG - Response for create_network : {'network': {'id': '27965251-0785-4e73-8091-d4f369b371f2', 'name': 'ctest-vn-28117474', 'tenant_id': 'ac6e509831094c22887c158a35fbc240', 'project_id': 'ac6e509831094c22887c158a35fbc240', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-vn-28117474'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:11:57,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '01ca7054-3d89-44a4-85aa-ac815073314f', 'name': '', 'tenant_id': 'ac6e509831094c22887c158a35fbc240', 'network_id': '27965251-0785-4e73-8091-d4f369b371f2', 'ip_version': 4, 'cidr': '196.77.200.64/26', 'allocation_pools': [{'start': '196.77.200.66', 'end': '196.77.200.126'}], 'gateway_ip': '196.77.200.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.77.200.66', 'tags': [], 'project_id': 'ac6e509831094c22887c158a35fbc240'}}
2025-04-25 00:11:57,497 - INFO - Created VN ctest-vn-28117474
2025-04-25 00:11:57,548 - DEBUG - VN ctest-vn-28117474 UUID is 27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:57,856 - DEBUG - Response for create_network : {'network': {'id': '64a3cce2-5e22-4f5d-96ff-7e0b3f55e913', 'name': 'ctest-vn-02996652', 'tenant_id': 'ac6e509831094c22887c158a35fbc240', 'project_id': 'ac6e509831094c22887c158a35fbc240', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-vn-02996652'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:11:57,992 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f992d8c-899a-4c8b-bac0-8173df79d685', 'name': '', 'tenant_id': 'ac6e509831094c22887c158a35fbc240', 'network_id': '64a3cce2-5e22-4f5d-96ff-7e0b3f55e913', 'ip_version': 4, 'cidr': '214.141.28.0/26', 'allocation_pools': [{'start': '214.141.28.2', 'end': '214.141.28.62'}], 'gateway_ip': '214.141.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.141.28.2', 'tags': [], 'project_id': 'ac6e509831094c22887c158a35fbc240'}}
2025-04-25 00:11:58,007 - INFO - Created VN ctest-vn-02996652
2025-04-25 00:11:58,060 - DEBUG - VN ctest-vn-02996652 UUID is 64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:11:58,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-28117474, 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-35852979:ctest-vn-02996652, 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-25 00:11:58,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27965251-0785-4e73-8091-d4f369b371f2', 'name': 'ctest-vn-28117474', 'tenant_id': 'ac6e509831094c22887c158a35fbc240', 'project_id': 'ac6e509831094c22887c158a35fbc240', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01ca7054-3d89-44a4-85aa-ac815073314f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-vn-28117474'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-policy-allow-all-37854427']], 'subnet_ipam': [{'subnet_cidr': '196.77.200.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:11:58,730 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64a3cce2-5e22-4f5d-96ff-7e0b3f55e913', 'name': 'ctest-vn-02996652', 'tenant_id': 'ac6e509831094c22887c158a35fbc240', 'project_id': 'ac6e509831094c22887c158a35fbc240', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f992d8c-899a-4c8b-bac0-8173df79d685'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-vn-02996652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-policy-allow-all-37854427']], 'subnet_ipam': [{'subnet_cidr': '214.141.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 00:11:58,888 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-25 00:11:59,177 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-25 00:11:59,201 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4f7e40b2-f298-4f2c-ac7e-b85d148b9410
2025-04-25 00:11:59,213 - DEBUG - Requesting: http://10.0.0.19:8082/project/ac6e5098-3109-4c22-887c-158a35fbc240
2025-04-25 00:11:59,293 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:59,304 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:59,314 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2f921675-9e99-4e39-8677-418c9ca58455
2025-04-25 00:11:59,321 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2f921675-9e99-4e39-8677-418c9ca58455
2025-04-25 00:11:59,327 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/95ee3193-446a-4800-b95b-449537652e18
2025-04-25 00:11:59,333 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 00:11:59,333 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:59,340 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2f921675-9e99-4e39-8677-418c9ca58455
2025-04-25 00:11:59,352 - INFO - Verified VN network id 8 for VN 27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:59,352 - INFO - Verifications in API Server for VN ctest-vn-28117474 passed
2025-04-25 00:11:59,352 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:59,360 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2f921675-9e99-4e39-8677-418c9ca58455
2025-04-25 00:11:59,367 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2f921675-9e99-4e39-8677-418c9ca58455
2025-04-25 00:11:59,373 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/95ee3193-446a-4800-b95b-449537652e18
2025-04-25 00:11:59,383 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-28117474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35852979', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2852557921957793395', 'uuid-lslong': '9264420050393330162'}, 'enable': 'true', 'created': '2025-04-25T00:11:57', 'last-modified': '2025-04-25T00:11:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913356'}
2025-04-25 00:11:59,389 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 00:11:59,389 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28117474 passed
2025-04-25 00:11:59,389 - DEBUG - ====Verifying policy data for ctest-vn-28117474 in API_Server ======
2025-04-25 00:11:59,389 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-25 00:11:59,393 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4f7e40b2-f298-4f2c-ac7e-b85d148b9410
2025-04-25 00:11:59,403 - DEBUG - Requesting: http://10.0.0.19:8082/project/ac6e5098-3109-4c22-887c-158a35fbc240
2025-04-25 00:11:59,472 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27965251-0785-4e73-8091-d4f369b371f2
2025-04-25 00:11:59,480 - DEBUG - ==>Verifying data for policy with id: e4a298d9-7492-47ca-a5b3-78773fa7a281, fqn: ['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-policy-allow-all-37854427']
2025-04-25 00:11:59,480 - INFO - VN ctest-vn-28117474 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 00:11:59,481 - DEBUG - Verifying the vn in opserver
2025-04-25 00:11:59,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-28117474 virtual network link through opserver 10.0.0.19
2025-04-25 00:11:59,481 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-25 00:11:59,774 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-25 00:11:59,819 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-28117474', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-28117474?flat'}
2025-04-25 00:11:59,819 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-28117474 is found in opserver
2025-04-25 00:11:59,829 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 00:11:59,833 - DEBUG - VRF ids for VN ctest-vn-28117474: {}
2025-04-25 00:11:59,833 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-25 00:11:59,838 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4f7e40b2-f298-4f2c-ac7e-b85d148b9410
2025-04-25 00:11:59,848 - DEBUG - Requesting: http://10.0.0.19:8082/project/ac6e5098-3109-4c22-887c-158a35fbc240
2025-04-25 00:11:59,923 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:11:59,934 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:11:59,943 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f57a7674-e9f9-4622-80fc-97f57a5a679b
2025-04-25 00:11:59,949 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f57a7674-e9f9-4622-80fc-97f57a5a679b
2025-04-25 00:11:59,955 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/c9d80a51-1a61-415e-92db-8e82d5f9e0e5
2025-04-25 00:11:59,960 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 00:11:59,960 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:11:59,968 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f57a7674-e9f9-4622-80fc-97f57a5a679b
2025-04-25 00:11:59,980 - INFO - Verified VN network id 9 for VN 64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:11:59,980 - INFO - Verifications in API Server for VN ctest-vn-02996652 passed
2025-04-25 00:11:59,980 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:11:59,989 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f57a7674-e9f9-4622-80fc-97f57a5a679b
2025-04-25 00:11:59,994 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f57a7674-e9f9-4622-80fc-97f57a5a679b
2025-04-25 00:12:00,002 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/c9d80a51-1a61-415e-92db-8e82d5f9e0e5
2025-04-25 00:12:00,013 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-02996652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35852979', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7251865097610612573', 'uuid-lslong': '10880553811522742547'}, 'enable': 'true', 'created': '2025-04-25T00:11:57', 'last-modified': '2025-04-25T00:11:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.315430'}
2025-04-25 00:12:00,019 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 00:12:00,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02996652 passed
2025-04-25 00:12:00,020 - DEBUG - ====Verifying policy data for ctest-vn-02996652 in API_Server ======
2025-04-25 00:12:00,020 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-25 00:12:00,027 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4f7e40b2-f298-4f2c-ac7e-b85d148b9410
2025-04-25 00:12:00,041 - DEBUG - Requesting: http://10.0.0.19:8082/project/ac6e5098-3109-4c22-887c-158a35fbc240
2025-04-25 00:12:00,128 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64a3cce2-5e22-4f5d-96ff-7e0b3f55e913
2025-04-25 00:12:00,138 - DEBUG - ==>Verifying data for policy with id: e4a298d9-7492-47ca-a5b3-78773fa7a281, fqn: ['default-domain', 'ctest-TestBasicPolicy-35852979', 'ctest-policy-allow-all-37854427']
2025-04-25 00:12:00,138 - INFO - VN ctest-vn-02996652 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 00:12:00,138 - DEBUG - Verifying the vn in opserver
2025-04-25 00:12:00,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-02996652 virtual network link through opserver 10.0.0.19
2025-04-25 00:12:00,138 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-25 00:12:00,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-02996652', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-02996652?flat'}
2025-04-25 00:12:00,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35852979:ctest-vn-02996652 is found in opserver
2025-04-25 00:12:00,157 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 00:12:00,162 - DEBUG - VRF ids for VN ctest-vn-02996652: {}
2025-04-25 00:12:00,210 - DEBUG - Services list from nova: [