2025-02-05 18:13:57,561 - INFO - Domain Default found not creating
2025-02-05 18:13:57,892 - INFO - Project ctest-TestBasicPolicy-04985178 not found, creating it
2025-02-05 18:13:58,526 - INFO - Created Project:ctest-TestBasicPolicy-04985178, ID : 02071802-bfd9-44c0-bbf5-af35f6748a6d
2025-02-05 18:14:00,465 - INFO - ================================================================================
2025-02-05 18:14:00,465 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 18:14:00,465 - 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-02-05 18:14:00,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.13': '0'}} with
2025-02-05 18:14:00,751 - INFO - Initial checks done. Running the testcase now
2025-02-05 18:14:00,751 - INFO -
2025-02-05 18:14:01,463 - DEBUG - Response for create_network : {'network': {'id': '0f48e78b-df20-4225-b99f-1e1dc66f9506', 'name': 'ctest-vn-58852754', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-58852754'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 18:14:01,713 - DEBUG - Response for create_subnet : {'subnet': {'id': '432350b7-88b4-40a9-a5f5-75243117c980', 'name': '', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'network_id': '0f48e78b-df20-4225-b99f-1e1dc66f9506', 'ip_version': 4, 'cidr': '193.199.72.64/26', 'allocation_pools': [{'start': '193.199.72.66', 'end': '193.199.72.126'}], 'gateway_ip': '193.199.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.199.72.66', 'tags': [], 'project_id': '02071802bfd944c0bbf5af35f6748a6d'}}
2025-02-05 18:14:01,738 - INFO - Created VN ctest-vn-58852754
2025-02-05 18:14:01,794 - DEBUG - VN ctest-vn-58852754 UUID is 0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:02,210 - DEBUG - Response for create_network : {'network': {'id': '99aa4029-cf4c-4f4f-aa73-a746815abf8c', 'name': 'ctest-vn-92743289', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-92743289'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 18:14:02,483 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc8331d1-21e0-4332-8d0e-a36236acd674', 'name': '', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'network_id': '99aa4029-cf4c-4f4f-aa73-a746815abf8c', 'ip_version': 4, 'cidr': '142.205.194.0/26', 'allocation_pools': [{'start': '142.205.194.2', 'end': '142.205.194.62'}], 'gateway_ip': '142.205.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.205.194.2', 'tags': [], 'project_id': '02071802bfd944c0bbf5af35f6748a6d'}}
2025-02-05 18:14:02,511 - INFO - Created VN ctest-vn-92743289
2025-02-05 18:14:02,574 - DEBUG - VN ctest-vn-92743289 UUID is 99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:02,727 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754, 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-04985178:ctest-vn-92743289, 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-02-05 18:14:03,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f48e78b-df20-4225-b99f-1e1dc66f9506', 'name': 'ctest-vn-58852754', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['432350b7-88b4-40a9-a5f5-75243117c980'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-58852754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279']], 'subnet_ipam': [{'subnet_cidr': '193.199.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 18:14:03,404 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99aa4029-cf4c-4f4f-aa73-a746815abf8c', 'name': 'ctest-vn-92743289', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc8331d1-21e0-4332-8d0e-a36236acd674'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-92743289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279']], 'subnet_ipam': [{'subnet_cidr': '142.205.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 18:14:03,569 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 18:14:03,885 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 18:14:03,936 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222
2025-02-05 18:14:03,960 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d
2025-02-05 18:14:04,058 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:04,075 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:04,088 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb
2025-02-05 18:14:04,099 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb
2025-02-05 18:14:04,111 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b41704fe-c7e8-4d4a-a953-0c45a8dc3861
2025-02-05 18:14:04,123 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 18:14:04,123 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:04,138 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb
2025-02-05 18:14:04,160 - INFO - Verified VN network id 9 for VN 0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:04,160 - INFO - Verifications in API Server for VN ctest-vn-58852754 passed
2025-02-05 18:14:04,161 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:04,175 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb
2025-02-05 18:14:04,186 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb
2025-02-05 18:14:04,197 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b41704fe-c7e8-4d4a-a953-0c45a8dc3861
2025-02-05 18:14:04,221 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04985178', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1101384696821989925', 'uuid-lslong': '13375442531545748742'}, 'enable': 'true', 'created': '2025-02-05T18:14:01', 'last-modified': '2025-02-05T18:14:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150434'}
2025-02-05 18:14:04,234 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 18:14:04,234 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58852754 passed
2025-02-05 18:14:04,235 - DEBUG - ====Verifying policy data for ctest-vn-58852754 in API_Server ======
2025-02-05 18:14:04,235 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 18:14:04,243 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222
2025-02-05 18:14:04,260 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d
2025-02-05 18:14:04,362 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506
2025-02-05 18:14:04,381 - DEBUG - ==>Verifying data for policy with id: ab9cfbad-bcd0-4b92-87dc-7abe636944ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279']
2025-02-05 18:14:04,381 - INFO - VN ctest-vn-58852754 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 18:14:04,381 - DEBUG - Verifying the vn in opserver
2025-02-05 18:14:04,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754 virtual network link through opserver 10.0.0.12
2025-02-05 18:14:04,381 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-05 18:14:04,727 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-05 18:14:04,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754?flat'}
2025-02-05 18:14:04,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754 is found in opserver
2025-02-05 18:14:04,897 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 18:14:04,906 - DEBUG - VRF ids for VN ctest-vn-58852754: {}
2025-02-05 18:14:04,906 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 18:14:04,916 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222
2025-02-05 18:14:04,937 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d
2025-02-05 18:14:05,047 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:05,071 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:05,090 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7
2025-02-05 18:14:05,102 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7
2025-02-05 18:14:05,117 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/32ebfcee-e480-4525-aee7-89b4b160b798
2025-02-05 18:14:05,131 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 18:14:05,131 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:05,149 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7
2025-02-05 18:14:05,176 - INFO - Verified VN network id 10 for VN 99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:05,176 - INFO - Verifications in API Server for VN ctest-vn-92743289 passed
2025-02-05 18:14:05,176 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:05,194 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7
2025-02-05 18:14:05,208 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7
2025-02-05 18:14:05,220 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/32ebfcee-e480-4525-aee7-89b4b160b798
2025-02-05 18:14:05,243 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04985178', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11072733182159507279', 'uuid-lslong': '12282344530029232012'}, 'enable': 'true', 'created': '2025-02-05T18:14:02', 'last-modified': '2025-02-05T18:14:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.873125'}
2025-02-05 18:14:05,259 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 18:14:05,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92743289 passed
2025-02-05 18:14:05,260 - DEBUG - ====Verifying policy data for ctest-vn-92743289 in API_Server ======
2025-02-05 18:14:05,260 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 18:14:05,270 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222
2025-02-05 18:14:05,294 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d
2025-02-05 18:14:05,393 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c
2025-02-05 18:14:05,410 - DEBUG - ==>Verifying data for policy with id: ab9cfbad-bcd0-4b92-87dc-7abe636944ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279']
2025-02-05 18:14:05,411 - INFO - VN ctest-vn-92743289 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 18:14:05,411 - DEBUG - Verifying the vn in opserver
2025-02-05 18:14:05,411 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289 virtual network link through opserver 10.0.0.12
2025-02-05 18:14:05,411 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-05 18:14:05,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289?flat'}
2025-02-05 18:14:05,431 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289 is found in opserver
2025-02-05 18:14:05,459 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 18:14:05,470 - DEBUG - VRF ids for VN ctest-vn-92743289: {}
2025-02-05 18:14:05,573 - DEBUG - Services list from nova: [