2025-08-29 09:40:40,764 - INFO - Domain Default found not creating
2025-08-29 09:40:40,901 - INFO - Project ctest-TestBasicPolicy-24190283 not found, creating it
2025-08-29 09:40:41,332 - INFO - Created Project:ctest-TestBasicPolicy-24190283, ID : 94112c8c-5857-441c-b7bf-7bb0f4699a70
2025-08-29 09:40:42,701 - INFO - ================================================================================
2025-08-29 09:40:42,701 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-29 09:40:42,701 - 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-08-29 09:40:42,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-29 09:40:42,958 - INFO - Initial checks done. Running the testcase now
2025-08-29 09:40:42,958 - INFO -
2025-08-29 09:40:43,495 - DEBUG - Response for create_network : {'network': {'id': '4f1cc82c-27ed-436f-8f3b-59a22b10be95', 'name': 'ctest-vn-02833876', 'tenant_id': '94112c8c5857441cb7bf7bb0f4699a70', 'project_id': '94112c8c5857441cb7bf7bb0f4699a70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-vn-02833876'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 09:40:43,660 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da7cbead-40a1-4284-8b25-801e7fcedafc', 'name': '', 'tenant_id': '94112c8c5857441cb7bf7bb0f4699a70', 'network_id': '4f1cc82c-27ed-436f-8f3b-59a22b10be95', 'ip_version': 4, 'cidr': '34.80.63.64/26', 'allocation_pools': [{'start': '34.80.63.66', 'end': '34.80.63.126'}], 'gateway_ip': '34.80.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.80.63.66', 'tags': [], 'project_id': '94112c8c5857441cb7bf7bb0f4699a70'}}
2025-08-29 09:40:43,677 - INFO - Created VN ctest-vn-02833876
2025-08-29 09:40:43,729 - DEBUG - VN ctest-vn-02833876 UUID is 4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:44,049 - DEBUG - Response for create_network : {'network': {'id': '2dbe6f8e-7f9e-470f-8556-b2dbc045af9e', 'name': 'ctest-vn-57740001', 'tenant_id': '94112c8c5857441cb7bf7bb0f4699a70', 'project_id': '94112c8c5857441cb7bf7bb0f4699a70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-vn-57740001'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 09:40:44,233 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f225273-edc5-46bf-bd4e-83842e2b7de8', 'name': '', 'tenant_id': '94112c8c5857441cb7bf7bb0f4699a70', 'network_id': '2dbe6f8e-7f9e-470f-8556-b2dbc045af9e', 'ip_version': 4, 'cidr': '197.73.255.64/26', 'allocation_pools': [{'start': '197.73.255.66', 'end': '197.73.255.126'}], 'gateway_ip': '197.73.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.73.255.66', 'tags': [], 'project_id': '94112c8c5857441cb7bf7bb0f4699a70'}}
2025-08-29 09:40:44,250 - INFO - Created VN ctest-vn-57740001
2025-08-29 09:40:44,305 - DEBUG - VN ctest-vn-57740001 UUID is 2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:44,457 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-02833876, 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-24190283:ctest-vn-57740001, 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-08-29 09:40:44,730 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f1cc82c-27ed-436f-8f3b-59a22b10be95', 'name': 'ctest-vn-02833876', 'tenant_id': '94112c8c5857441cb7bf7bb0f4699a70', 'project_id': '94112c8c5857441cb7bf7bb0f4699a70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da7cbead-40a1-4284-8b25-801e7fcedafc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-vn-02833876'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-policy-allow-all-50556234']], 'subnet_ipam': [{'subnet_cidr': '34.80.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 09:40:44,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dbe6f8e-7f9e-470f-8556-b2dbc045af9e', 'name': 'ctest-vn-57740001', 'tenant_id': '94112c8c5857441cb7bf7bb0f4699a70', 'project_id': '94112c8c5857441cb7bf7bb0f4699a70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f225273-edc5-46bf-bd4e-83842e2b7de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-vn-57740001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-policy-allow-all-50556234']], 'subnet_ipam': [{'subnet_cidr': '197.73.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 09:40:45,117 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 09:40:45,413 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 09:40:45,439 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ab28530-83e1-45a0-83db-4eaa52e16107
2025-08-29 09:40:45,449 - DEBUG - Requesting: http://10.0.0.254:8082/project/94112c8c-5857-441c-b7bf-7bb0f4699a70
2025-08-29 09:40:45,519 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:45,529 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:45,537 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/56462bdf-65b1-43ae-8d2f-ca3acaff674e
2025-08-29 09:40:45,543 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/56462bdf-65b1-43ae-8d2f-ca3acaff674e
2025-08-29 09:40:45,548 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d88200eb-3b43-4a44-8f55-d2ac472bac84
2025-08-29 09:40:45,553 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 09:40:45,553 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:45,560 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/56462bdf-65b1-43ae-8d2f-ca3acaff674e
2025-08-29 09:40:45,570 - INFO - Verified VN network id 10 for VN 4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:45,570 - INFO - Verifications in API Server for VN ctest-vn-02833876 passed
2025-08-29 09:40:45,570 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:45,577 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/56462bdf-65b1-43ae-8d2f-ca3acaff674e
2025-08-29 09:40:45,582 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/56462bdf-65b1-43ae-8d2f-ca3acaff674e
2025-08-29 09:40:45,587 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d88200eb-3b43-4a44-8f55-d2ac472bac84
2025-08-29 09:40:45,596 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-02833876', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24190283', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5700651320318182255', 'uuid-lslong': '10320941524091715221'}, 'enable': 'true', 'created': '2025-08-29T09:40:43', 'last-modified': '2025-08-29T09:40:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884365'}
2025-08-29 09:40:45,601 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 09:40:45,601 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02833876 passed
2025-08-29 09:40:45,601 - DEBUG - ====Verifying policy data for ctest-vn-02833876 in API_Server ======
2025-08-29 09:40:45,601 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 09:40:45,605 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ab28530-83e1-45a0-83db-4eaa52e16107
2025-08-29 09:40:45,613 - DEBUG - Requesting: http://10.0.0.254:8082/project/94112c8c-5857-441c-b7bf-7bb0f4699a70
2025-08-29 09:40:45,680 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f1cc82c-27ed-436f-8f3b-59a22b10be95
2025-08-29 09:40:45,688 - DEBUG - ==>Verifying data for policy with id: bff97d46-7b34-4233-a0d0-6b8af9eda207, fqn: ['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-policy-allow-all-50556234']
2025-08-29 09:40:45,688 - INFO - VN ctest-vn-02833876 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 09:40:45,688 - DEBUG - Verifying the vn in opserver
2025-08-29 09:40:45,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-02833876 virtual network link through opserver 10.0.0.254
2025-08-29 09:40:45,688 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 09:40:45,980 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 09:40:46,028 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-02833876', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-02833876?flat'}
2025-08-29 09:40:46,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-02833876 is found in opserver
2025-08-29 09:40:46,037 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 09:40:46,041 - DEBUG - VRF ids for VN ctest-vn-02833876: {}
2025-08-29 09:40:46,041 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 09:40:46,046 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ab28530-83e1-45a0-83db-4eaa52e16107
2025-08-29 09:40:46,054 - DEBUG - Requesting: http://10.0.0.254:8082/project/94112c8c-5857-441c-b7bf-7bb0f4699a70
2025-08-29 09:40:46,118 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:46,128 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:46,136 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c46cf34b-9b16-4b6f-b513-4cb719f7d85d
2025-08-29 09:40:46,141 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c46cf34b-9b16-4b6f-b513-4cb719f7d85d
2025-08-29 09:40:46,146 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e6b43838-d213-4264-93b6-97c05fd3e836
2025-08-29 09:40:46,151 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 09:40:46,151 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:46,158 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c46cf34b-9b16-4b6f-b513-4cb719f7d85d
2025-08-29 09:40:46,168 - INFO - Verified VN network id 11 for VN 2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:46,168 - INFO - Verifications in API Server for VN ctest-vn-57740001 passed
2025-08-29 09:40:46,168 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:46,175 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c46cf34b-9b16-4b6f-b513-4cb719f7d85d
2025-08-29 09:40:46,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c46cf34b-9b16-4b6f-b513-4cb719f7d85d
2025-08-29 09:40:46,185 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e6b43838-d213-4264-93b6-97c05fd3e836
2025-08-29 09:40:46,197 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-57740001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24190283', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3296194635098900239', 'uuid-lslong': '9608063511934906270'}, 'enable': 'true', 'created': '2025-08-29T09:40:44', 'last-modified': '2025-08-29T09:40:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.265455'}
2025-08-29 09:40:46,202 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 09:40:46,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57740001 passed
2025-08-29 09:40:46,202 - DEBUG - ====Verifying policy data for ctest-vn-57740001 in API_Server ======
2025-08-29 09:40:46,202 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 09:40:46,206 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ab28530-83e1-45a0-83db-4eaa52e16107
2025-08-29 09:40:46,215 - DEBUG - Requesting: http://10.0.0.254:8082/project/94112c8c-5857-441c-b7bf-7bb0f4699a70
2025-08-29 09:40:46,280 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2dbe6f8e-7f9e-470f-8556-b2dbc045af9e
2025-08-29 09:40:46,289 - DEBUG - ==>Verifying data for policy with id: bff97d46-7b34-4233-a0d0-6b8af9eda207, fqn: ['default-domain', 'ctest-TestBasicPolicy-24190283', 'ctest-policy-allow-all-50556234']
2025-08-29 09:40:46,289 - INFO - VN ctest-vn-57740001 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 09:40:46,289 - DEBUG - Verifying the vn in opserver
2025-08-29 09:40:46,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-57740001 virtual network link through opserver 10.0.0.254
2025-08-29 09:40:46,289 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 09:40:46,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-57740001', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-57740001?flat'}
2025-08-29 09:40:46,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24190283:ctest-vn-57740001 is found in opserver
2025-08-29 09:40:46,306 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 09:40:46,310 - DEBUG - VRF ids for VN ctest-vn-57740001: {}
2025-08-29 09:40:46,362 - DEBUG - Services list from nova: [