2025-03-24 11:18:21,865 - INFO - Domain Default found not creating
2025-03-24 11:18:22,023 - INFO - Project ctest-TestBasicPolicy-40265485 not found, creating it
2025-03-24 11:18:22,486 - INFO - Created Project:ctest-TestBasicPolicy-40265485, ID : c4e588dc-f3bd-4676-ba58-004b96e602ca
2025-03-24 11:18:23,993 - INFO - ================================================================================
2025-03-24 11:18:23,993 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-24 11:18:23,993 - 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-03-24 11:18:24,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.8': '0'}} with
2025-03-24 11:18:24,250 - INFO - Initial checks done. Running the testcase now
2025-03-24 11:18:24,250 - INFO -
2025-03-24 11:18:24,808 - DEBUG - Response for create_network : {'network': {'id': '9e1b715b-452c-4f47-baa6-a669b86ce818', 'name': 'ctest-vn-93225631', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-93225631'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 11:18:24,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e98fd383-11a7-40dc-ae35-ebcd4f9436cd', 'name': '', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'network_id': '9e1b715b-452c-4f47-baa6-a669b86ce818', 'ip_version': 4, 'cidr': '107.250.172.128/26', 'allocation_pools': [{'start': '107.250.172.130', 'end': '107.250.172.190'}], 'gateway_ip': '107.250.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.250.172.130', 'tags': [], 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca'}}
2025-03-24 11:18:25,004 - INFO - Created VN ctest-vn-93225631
2025-03-24 11:18:25,055 - DEBUG - VN ctest-vn-93225631 UUID is 9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:25,341 - DEBUG - Response for create_network : {'network': {'id': '50f582c4-2e8c-4514-9b8a-1a422e27fa3a', 'name': 'ctest-vn-13178689', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-13178689'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 11:18:25,540 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e19f6cc-c22f-44d9-ae58-08dd9a04091a', 'name': '', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'network_id': '50f582c4-2e8c-4514-9b8a-1a422e27fa3a', 'ip_version': 4, 'cidr': '142.211.152.192/26', 'allocation_pools': [{'start': '142.211.152.194', 'end': '142.211.152.254'}], 'gateway_ip': '142.211.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.211.152.194', 'tags': [], 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca'}}
2025-03-24 11:18:25,559 - INFO - Created VN ctest-vn-13178689
2025-03-24 11:18:25,619 - DEBUG - VN ctest-vn-13178689 UUID is 50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:25,739 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631, 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-40265485:ctest-vn-13178689, 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-03-24 11:18:26,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e1b715b-452c-4f47-baa6-a669b86ce818', 'name': 'ctest-vn-93225631', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e98fd383-11a7-40dc-ae35-ebcd4f9436cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-93225631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365']], 'subnet_ipam': [{'subnet_cidr': '107.250.172.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 11:18:26,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50f582c4-2e8c-4514-9b8a-1a422e27fa3a', 'name': 'ctest-vn-13178689', 'tenant_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'project_id': 'c4e588dcf3bd4676ba58004b96e602ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e19f6cc-c22f-44d9-ae58-08dd9a04091a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-vn-13178689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365']], 'subnet_ipam': [{'subnet_cidr': '142.211.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 11:18:26,467 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-03-24 11:18:26,764 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-03-24 11:18:26,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f
2025-03-24 11:18:26,810 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca
2025-03-24 11:18:26,896 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:26,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:26,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d
2025-03-24 11:18:26,930 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d
2025-03-24 11:18:26,938 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/68cba6a7-c822-4d0a-a1c3-546f974084a6
2025-03-24 11:18:26,946 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 11:18:26,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:26,956 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d
2025-03-24 11:18:26,973 - INFO - Verified VN network id 8 for VN 9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:26,973 - INFO - Verifications in API Server for VN ctest-vn-93225631 passed
2025-03-24 11:18:26,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:26,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d
2025-03-24 11:18:26,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2184001-234a-4731-9fd8-72fb2670ae6d
2025-03-24 11:18:27,002 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/68cba6a7-c822-4d0a-a1c3-546f974084a6
2025-03-24 11:18:27,017 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40265485', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11392824319180296007', 'uuid-lslong': '13449620310184486936'}, 'enable': 'true', 'created': '2025-03-24T11:18:24', 'last-modified': '2025-03-24T11:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991291'}
2025-03-24 11:18:27,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 11:18:27,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93225631 passed
2025-03-24 11:18:27,024 - DEBUG - ====Verifying policy data for ctest-vn-93225631 in API_Server ======
2025-03-24 11:18:27,024 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-03-24 11:18:27,030 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f
2025-03-24 11:18:27,044 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca
2025-03-24 11:18:27,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e1b715b-452c-4f47-baa6-a669b86ce818
2025-03-24 11:18:27,145 - DEBUG - ==>Verifying data for policy with id: e567fd75-93ad-4465-bce9-bfea3862a52c, fqn: ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365']
2025-03-24 11:18:27,145 - INFO - VN ctest-vn-93225631 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 11:18:27,145 - DEBUG - Verifying the vn in opserver
2025-03-24 11:18:27,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631 virtual network link through opserver 10.0.0.38
2025-03-24 11:18:27,145 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-03-24 11:18:27,447 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-03-24 11:18:27,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631?flat'}
2025-03-24 11:18:27,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-93225631 is found in opserver
2025-03-24 11:18:27,531 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 11:18:27,536 - DEBUG - VRF ids for VN ctest-vn-93225631: {}
2025-03-24 11:18:27,536 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-03-24 11:18:27,543 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f
2025-03-24 11:18:27,559 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca
2025-03-24 11:18:27,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:27,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:27,684 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7
2025-03-24 11:18:27,695 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7
2025-03-24 11:18:27,710 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4ddbdb0-9a18-420a-84cb-65b67ead685b
2025-03-24 11:18:27,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 11:18:27,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:27,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7
2025-03-24 11:18:27,751 - INFO - Verified VN network id 9 for VN 50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:27,751 - INFO - Verifications in API Server for VN ctest-vn-13178689 passed
2025-03-24 11:18:27,751 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:27,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7
2025-03-24 11:18:27,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8cd4b7af-ec85-4dcd-af41-6a9766daafc7
2025-03-24 11:18:27,782 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4ddbdb0-9a18-420a-84cb-65b67ead685b
2025-03-24 11:18:27,797 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40265485', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5833712671434491156', 'uuid-lslong': '11207799494209436218'}, 'enable': 'true', 'created': '2025-03-24T11:18:25', 'last-modified': '2025-03-24T11:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521417'}
2025-03-24 11:18:27,804 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 11:18:27,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13178689 passed
2025-03-24 11:18:27,805 - DEBUG - ====Verifying policy data for ctest-vn-13178689 in API_Server ======
2025-03-24 11:18:27,805 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-03-24 11:18:27,812 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abf24085-787d-487f-aa4a-b3b0b14b455f
2025-03-24 11:18:27,829 - DEBUG - Requesting: http://10.0.0.38:8082/project/c4e588dc-f3bd-4676-ba58-004b96e602ca
2025-03-24 11:18:27,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50f582c4-2e8c-4514-9b8a-1a422e27fa3a
2025-03-24 11:18:27,940 - DEBUG - ==>Verifying data for policy with id: e567fd75-93ad-4465-bce9-bfea3862a52c, fqn: ['default-domain', 'ctest-TestBasicPolicy-40265485', 'ctest-policy-allow-all-60509365']
2025-03-24 11:18:27,940 - INFO - VN ctest-vn-13178689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 11:18:27,940 - DEBUG - Verifying the vn in opserver
2025-03-24 11:18:27,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689 virtual network link through opserver 10.0.0.38
2025-03-24 11:18:27,941 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-03-24 11:18:27,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689?flat'}
2025-03-24 11:18:27,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40265485:ctest-vn-13178689 is found in opserver
2025-03-24 11:18:27,968 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 11:18:27,973 - DEBUG - VRF ids for VN ctest-vn-13178689: {}
2025-03-24 11:18:28,037 - DEBUG - Services list from nova: [