2025-06-20 08:58:50,931 - INFO - Domain Default found not creating
2025-06-20 08:58:51,068 - INFO - Project ctest-TestBasicPolicy-84120062 not found, creating it
2025-06-20 08:58:51,516 - INFO - Created Project:ctest-TestBasicPolicy-84120062, ID : 9b6c4f9b-3cfe-44ee-a779-a62a045b068a
2025-06-20 08:58:52,939 - INFO - ================================================================================
2025-06-20 08:58:52,939 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 08:58:52,939 - 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-06-20 08:58:53,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-06-20 08:58:53,200 - INFO - Initial checks done. Running the testcase now
2025-06-20 08:58:53,200 - INFO -
2025-06-20 08:58:53,729 - DEBUG - Response for create_network : {'network': {'id': '193f74b7-c1d1-4126-9027-eb83e4b7c868', 'name': 'ctest-vn-43111730', 'tenant_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'project_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-vn-43111730'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:58:53,885 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7267c8f-abdf-4b8d-9d53-5f1a81c933ac', 'name': '', 'tenant_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'network_id': '193f74b7-c1d1-4126-9027-eb83e4b7c868', 'ip_version': 4, 'cidr': '70.214.212.0/26', 'allocation_pools': [{'start': '70.214.212.2', 'end': '70.214.212.62'}], 'gateway_ip': '70.214.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.214.212.2', 'tags': [], 'project_id': '9b6c4f9b3cfe44eea779a62a045b068a'}}
2025-06-20 08:58:53,903 - INFO - Created VN ctest-vn-43111730
2025-06-20 08:58:53,958 - DEBUG - VN ctest-vn-43111730 UUID is 193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:54,279 - DEBUG - Response for create_network : {'network': {'id': 'cfe4b408-7698-4bdf-a701-1a8bc8197352', 'name': 'ctest-vn-15976739', 'tenant_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'project_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-vn-15976739'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:58:54,502 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa04a6e3-de00-4393-a66c-44bfde086ba3', 'name': '', 'tenant_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'network_id': 'cfe4b408-7698-4bdf-a701-1a8bc8197352', 'ip_version': 4, 'cidr': '187.183.185.192/26', 'allocation_pools': [{'start': '187.183.185.194', 'end': '187.183.185.254'}], 'gateway_ip': '187.183.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.183.185.194', 'tags': [], 'project_id': '9b6c4f9b3cfe44eea779a62a045b068a'}}
2025-06-20 08:58:54,519 - INFO - Created VN ctest-vn-15976739
2025-06-20 08:58:54,574 - DEBUG - VN ctest-vn-15976739 UUID is cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:54,722 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-43111730, 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-84120062:ctest-vn-15976739, 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-06-20 08:58:55,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '193f74b7-c1d1-4126-9027-eb83e4b7c868', 'name': 'ctest-vn-43111730', 'tenant_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'project_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7267c8f-abdf-4b8d-9d53-5f1a81c933ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-vn-43111730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-policy-allow-all-63198067']], 'subnet_ipam': [{'subnet_cidr': '70.214.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:58:55,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfe4b408-7698-4bdf-a701-1a8bc8197352', 'name': 'ctest-vn-15976739', 'tenant_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'project_id': '9b6c4f9b3cfe44eea779a62a045b068a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa04a6e3-de00-4393-a66c-44bfde086ba3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-vn-15976739'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-policy-allow-all-63198067']], 'subnet_ipam': [{'subnet_cidr': '187.183.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:58:55,402 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 08:58:55,693 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 08:58:55,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29afa1cf-c4d4-4575-92b4-d79abf8ee5e1
2025-06-20 08:58:55,735 - DEBUG - Requesting: http://10.0.0.50:8082/project/9b6c4f9b-3cfe-44ee-a779-a62a045b068a
2025-06-20 08:58:55,808 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:55,819 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:55,829 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d08e549-92a2-4c1d-901c-4b9c8d07ac5d
2025-06-20 08:58:55,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d08e549-92a2-4c1d-901c-4b9c8d07ac5d
2025-06-20 08:58:55,844 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ee8467ae-2059-4f21-89c7-5979a94b7cc2
2025-06-20 08:58:55,852 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 08:58:55,852 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:55,862 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d08e549-92a2-4c1d-901c-4b9c8d07ac5d
2025-06-20 08:58:55,876 - INFO - Verified VN network id 8 for VN 193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:55,876 - INFO - Verifications in API Server for VN ctest-vn-43111730 passed
2025-06-20 08:58:55,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:55,885 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d08e549-92a2-4c1d-901c-4b9c8d07ac5d
2025-06-20 08:58:55,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d08e549-92a2-4c1d-901c-4b9c8d07ac5d
2025-06-20 08:58:55,902 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ee8467ae-2059-4f21-89c7-5979a94b7cc2
2025-06-20 08:58:55,922 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-43111730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84120062', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1819301107060523302', 'uuid-lslong': '10387530017263831144'}, 'enable': 'true', 'created': '2025-06-20T08:58:53', 'last-modified': '2025-06-20T08:58:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932889'}
2025-06-20 08:58:55,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 08:58:55,949 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43111730 passed
2025-06-20 08:58:55,949 - DEBUG - ====Verifying policy data for ctest-vn-43111730 in API_Server ======
2025-06-20 08:58:55,950 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 08:58:55,956 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29afa1cf-c4d4-4575-92b4-d79abf8ee5e1
2025-06-20 08:58:55,969 - DEBUG - Requesting: http://10.0.0.50:8082/project/9b6c4f9b-3cfe-44ee-a779-a62a045b068a
2025-06-20 08:58:56,040 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/193f74b7-c1d1-4126-9027-eb83e4b7c868
2025-06-20 08:58:56,050 - DEBUG - ==>Verifying data for policy with id: 559387b7-7ec9-4b59-934f-432ed3140fcd, fqn: ['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-policy-allow-all-63198067']
2025-06-20 08:58:56,050 - INFO - VN ctest-vn-43111730 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 08:58:56,050 - DEBUG - Verifying the vn in opserver
2025-06-20 08:58:56,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-43111730 virtual network link through opserver 10.0.0.50
2025-06-20 08:58:56,050 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-20 08:58:56,340 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-20 08:58:56,399 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-43111730', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-43111730?flat'}
2025-06-20 08:58:56,399 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-43111730 is found in opserver
2025-06-20 08:58:56,416 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 08:58:56,421 - DEBUG - VRF ids for VN ctest-vn-43111730: {}
2025-06-20 08:58:56,421 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 08:58:56,427 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29afa1cf-c4d4-4575-92b4-d79abf8ee5e1
2025-06-20 08:58:56,438 - DEBUG - Requesting: http://10.0.0.50:8082/project/9b6c4f9b-3cfe-44ee-a779-a62a045b068a
2025-06-20 08:58:56,510 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:56,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:56,535 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/043253ec-847a-45d1-8970-a499a6e12a9f
2025-06-20 08:58:56,543 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/043253ec-847a-45d1-8970-a499a6e12a9f
2025-06-20 08:58:56,551 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7cc887bf-c134-49ed-b9c1-9effcdb84576
2025-06-20 08:58:56,557 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 08:58:56,557 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:56,567 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/043253ec-847a-45d1-8970-a499a6e12a9f
2025-06-20 08:58:56,584 - INFO - Verified VN network id 9 for VN cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:56,584 - INFO - Verifications in API Server for VN ctest-vn-15976739 passed
2025-06-20 08:58:56,584 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:56,594 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/043253ec-847a-45d1-8970-a499a6e12a9f
2025-06-20 08:58:56,602 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/043253ec-847a-45d1-8970-a499a6e12a9f
2025-06-20 08:58:56,610 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7cc887bf-c134-49ed-b9c1-9effcdb84576
2025-06-20 08:58:56,624 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-15976739', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84120062', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14980296208983542751', 'uuid-lslong': '12033928866970563410'}, 'enable': 'true', 'created': '2025-06-20T08:58:54', 'last-modified': '2025-06-20T08:58:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412623'}
2025-06-20 08:58:56,631 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 08:58:56,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15976739 passed
2025-06-20 08:58:56,631 - DEBUG - ====Verifying policy data for ctest-vn-15976739 in API_Server ======
2025-06-20 08:58:56,631 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 08:58:56,637 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29afa1cf-c4d4-4575-92b4-d79abf8ee5e1
2025-06-20 08:58:56,648 - DEBUG - Requesting: http://10.0.0.50:8082/project/9b6c4f9b-3cfe-44ee-a779-a62a045b068a
2025-06-20 08:58:56,723 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cfe4b408-7698-4bdf-a701-1a8bc8197352
2025-06-20 08:58:56,732 - DEBUG - ==>Verifying data for policy with id: 559387b7-7ec9-4b59-934f-432ed3140fcd, fqn: ['default-domain', 'ctest-TestBasicPolicy-84120062', 'ctest-policy-allow-all-63198067']
2025-06-20 08:58:56,732 - INFO - VN ctest-vn-15976739 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 08:58:56,732 - DEBUG - Verifying the vn in opserver
2025-06-20 08:58:56,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-15976739 virtual network link through opserver 10.0.0.50
2025-06-20 08:58:56,732 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-20 08:58:56,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-15976739', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-15976739?flat'}
2025-06-20 08:58:56,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84120062:ctest-vn-15976739 is found in opserver
2025-06-20 08:58:56,752 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 08:58:56,757 - DEBUG - VRF ids for VN ctest-vn-15976739: {}
2025-06-20 08:58:56,809 - DEBUG - Services list from nova: [