2025-04-23 14:27:19,642 - INFO - Domain Default found not creating
2025-04-23 14:27:19,794 - INFO - Project ctest-TestBasicPolicy-05502571 not found, creating it
2025-04-23 14:27:20,279 - INFO - Created Project:ctest-TestBasicPolicy-05502571, ID : e845d617-225b-4ce9-add8-2d432c104bdd
2025-04-23 14:27:21,857 - INFO - ================================================================================
2025-04-23 14:27:21,857 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 14:27:21,857 - 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-23 14:27:22,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2025-04-23 14:27:22,117 - INFO - Initial checks done. Running the testcase now
2025-04-23 14:27:22,117 - INFO -
2025-04-23 14:27:22,700 - DEBUG - Response for create_network : {'network': {'id': '0181054c-c5a4-4281-a970-f8cf0c3b105b', 'name': 'ctest-vn-20252796', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-20252796'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 14:27:22,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '95593e54-e42d-48d7-8e15-b806c2511ed4', 'name': '', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'network_id': '0181054c-c5a4-4281-a970-f8cf0c3b105b', 'ip_version': 4, 'cidr': '134.56.43.128/26', 'allocation_pools': [{'start': '134.56.43.130', 'end': '134.56.43.190'}], 'gateway_ip': '134.56.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.56.43.130', 'tags': [], 'project_id': 'e845d617225b4ce9add82d432c104bdd'}}
2025-04-23 14:27:22,893 - INFO - Created VN ctest-vn-20252796
2025-04-23 14:27:22,951 - DEBUG - VN ctest-vn-20252796 UUID is 0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:23,305 - DEBUG - Response for create_network : {'network': {'id': '83d090ad-d935-4688-bd51-cbdeeea9791f', 'name': 'ctest-vn-43382912', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-43382912'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 14:27:23,458 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5f3c1d6-65a8-458c-b513-ddca2556b7f6', 'name': '', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'network_id': '83d090ad-d935-4688-bd51-cbdeeea9791f', 'ip_version': 4, 'cidr': '145.143.87.0/26', 'allocation_pools': [{'start': '145.143.87.2', 'end': '145.143.87.62'}], 'gateway_ip': '145.143.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.143.87.2', 'tags': [], 'project_id': 'e845d617225b4ce9add82d432c104bdd'}}
2025-04-23 14:27:23,477 - INFO - Created VN ctest-vn-43382912
2025-04-23 14:27:23,531 - DEBUG - VN ctest-vn-43382912 UUID is 83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:23,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796, 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-05502571:ctest-vn-43382912, 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-23 14:27:23,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0181054c-c5a4-4281-a970-f8cf0c3b105b', 'name': 'ctest-vn-20252796', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95593e54-e42d-48d7-8e15-b806c2511ed4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-20252796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540']], 'subnet_ipam': [{'subnet_cidr': '134.56.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 14:27:24,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83d090ad-d935-4688-bd51-cbdeeea9791f', 'name': 'ctest-vn-43382912', 'tenant_id': 'e845d617225b4ce9add82d432c104bdd', 'project_id': 'e845d617225b4ce9add82d432c104bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5f3c1d6-65a8-458c-b513-ddca2556b7f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-vn-43382912'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540']], 'subnet_ipam': [{'subnet_cidr': '145.143.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 14:27:24,423 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-23 14:27:24,765 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-23 14:27:24,795 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4
2025-04-23 14:27:24,809 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd
2025-04-23 14:27:24,888 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:24,902 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:24,914 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b
2025-04-23 14:27:24,924 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b
2025-04-23 14:27:24,933 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b55b3a23-0538-46fe-8f62-ccca08c29581
2025-04-23 14:27:24,941 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 14:27:24,941 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:24,952 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b
2025-04-23 14:27:24,968 - INFO - Verified VN network id 9 for VN 0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:24,968 - INFO - Verifications in API Server for VN ctest-vn-20252796 passed
2025-04-23 14:27:24,968 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:24,979 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b
2025-04-23 14:27:24,986 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a0061783-ce36-452e-bb03-fbf7d492db2b
2025-04-23 14:27:24,994 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b55b3a23-0538-46fe-8f62-ccca08c29581
2025-04-23 14:27:25,008 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05502571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '108373693325132417', 'uuid-lslong': '12209532157948530779'}, 'enable': 'true', 'created': '2025-04-23T14:27:22', 'last-modified': '2025-04-23T14:27:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050292'}
2025-04-23 14:27:25,015 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 14:27:25,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20252796 passed
2025-04-23 14:27:25,015 - DEBUG - ====Verifying policy data for ctest-vn-20252796 in API_Server ======
2025-04-23 14:27:25,015 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-23 14:27:25,022 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4
2025-04-23 14:27:25,034 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd
2025-04-23 14:27:25,109 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0181054c-c5a4-4281-a970-f8cf0c3b105b
2025-04-23 14:27:25,121 - DEBUG - ==>Verifying data for policy with id: 7d6b4560-64bf-46f6-9f3a-4542aa310e00, fqn: ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540']
2025-04-23 14:27:25,121 - INFO - VN ctest-vn-20252796 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 14:27:25,121 - DEBUG - Verifying the vn in opserver
2025-04-23 14:27:25,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796 virtual network link through opserver 10.0.0.129
2025-04-23 14:27:25,121 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-04-23 14:27:25,463 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-04-23 14:27:25,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796?flat'}
2025-04-23 14:27:25,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-20252796 is found in opserver
2025-04-23 14:27:25,534 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 14:27:25,540 - DEBUG - VRF ids for VN ctest-vn-20252796: {}
2025-04-23 14:27:25,540 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-23 14:27:25,546 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4
2025-04-23 14:27:25,559 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd
2025-04-23 14:27:25,628 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:25,640 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:25,650 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a
2025-04-23 14:27:25,659 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a
2025-04-23 14:27:25,666 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/334bfb99-5a48-49f1-87bc-541ea8e8a6b2
2025-04-23 14:27:25,673 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 14:27:25,673 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:25,685 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a
2025-04-23 14:27:25,699 - INFO - Verified VN network id 10 for VN 83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:25,699 - INFO - Verifications in API Server for VN ctest-vn-43382912 passed
2025-04-23 14:27:25,699 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:25,708 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a
2025-04-23 14:27:25,715 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/04322ae6-04ed-40b9-ba60-bf48d9dc9f4a
2025-04-23 14:27:25,722 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/334bfb99-5a48-49f1-87bc-541ea8e8a6b2
2025-04-23 14:27:25,734 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05502571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9498250690472265352', 'uuid-lslong': '13641908904629205279'}, 'enable': 'true', 'created': '2025-04-23T14:27:23', 'last-modified': '2025-04-23T14:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539565'}
2025-04-23 14:27:25,740 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 14:27:25,741 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43382912 passed
2025-04-23 14:27:25,741 - DEBUG - ====Verifying policy data for ctest-vn-43382912 in API_Server ======
2025-04-23 14:27:25,741 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-23 14:27:25,746 - DEBUG - Requesting: http://10.0.0.129:8082/domain/3c22983a-2c52-442d-91bd-4568a5e1a5e4
2025-04-23 14:27:25,758 - DEBUG - Requesting: http://10.0.0.129:8082/project/e845d617-225b-4ce9-add8-2d432c104bdd
2025-04-23 14:27:25,829 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/83d090ad-d935-4688-bd51-cbdeeea9791f
2025-04-23 14:27:25,839 - DEBUG - ==>Verifying data for policy with id: 7d6b4560-64bf-46f6-9f3a-4542aa310e00, fqn: ['default-domain', 'ctest-TestBasicPolicy-05502571', 'ctest-policy-allow-all-46236540']
2025-04-23 14:27:25,840 - INFO - VN ctest-vn-43382912 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 14:27:25,840 - DEBUG - Verifying the vn in opserver
2025-04-23 14:27:25,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912 virtual network link through opserver 10.0.0.129
2025-04-23 14:27:25,840 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-04-23 14:27:25,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912?flat'}
2025-04-23 14:27:25,851 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05502571:ctest-vn-43382912 is found in opserver
2025-04-23 14:27:25,862 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 14:27:25,867 - DEBUG - VRF ids for VN ctest-vn-43382912: {}
2025-04-23 14:27:25,923 - DEBUG - Services list from nova: [