2025-05-08 17:02:46,142 - INFO - Domain Default found not creating
2025-05-08 17:02:46,300 - INFO - Project ctest-TestBasicPolicy-17792631 not found, creating it
2025-05-08 17:02:46,778 - INFO - Created Project:ctest-TestBasicPolicy-17792631, ID : bb5cbfa6-6f6c-4731-b985-35f28f29f1c2
2025-05-08 17:02:48,354 - INFO - ================================================================================
2025-05-08 17:02:48,355 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-08 17:02:48,355 - 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-05-08 17:02:48,619 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-08 17:02:48,619 - INFO - Initial checks done. Running the testcase now
2025-05-08 17:02:48,619 - INFO -
2025-05-08 17:02:49,221 - DEBUG - Response for create_network : {'network': {'id': '7ce435bd-8137-4c6e-b505-cea05ea497be', 'name': 'ctest-vn-17448449', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-17448449'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:02:49,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dd4feb8-0edc-460c-9f17-ca83c96eb46b', 'name': '', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'network_id': '7ce435bd-8137-4c6e-b505-cea05ea497be', 'ip_version': 4, 'cidr': '53.11.13.64/26', 'allocation_pools': [{'start': '53.11.13.66', 'end': '53.11.13.126'}], 'gateway_ip': '53.11.13.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.11.13.66', 'tags': [], 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2'}}
2025-05-08 17:02:49,465 - INFO - Created VN ctest-vn-17448449
2025-05-08 17:02:49,519 - DEBUG - VN ctest-vn-17448449 UUID is 7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:49,823 - DEBUG - Response for create_network : {'network': {'id': '56cc6d5a-75d4-4961-b890-a33c6205d5b1', 'name': 'ctest-vn-53978492', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-53978492'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:02:50,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '58b7420b-c8ab-488b-b77b-c307738fdab8', 'name': '', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'network_id': '56cc6d5a-75d4-4961-b890-a33c6205d5b1', 'ip_version': 4, 'cidr': '45.138.32.192/26', 'allocation_pools': [{'start': '45.138.32.194', 'end': '45.138.32.254'}], 'gateway_ip': '45.138.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.138.32.194', 'tags': [], 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2'}}
2025-05-08 17:02:50,022 - INFO - Created VN ctest-vn-53978492
2025-05-08 17:02:50,075 - DEBUG - VN ctest-vn-53978492 UUID is 56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:50,187 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449, 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-17792631:ctest-vn-53978492, 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-05-08 17:02:50,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ce435bd-8137-4c6e-b505-cea05ea497be', 'name': 'ctest-vn-17448449', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8dd4feb8-0edc-460c-9f17-ca83c96eb46b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-17448449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365']], 'subnet_ipam': [{'subnet_cidr': '53.11.13.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:02:50,705 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56cc6d5a-75d4-4961-b890-a33c6205d5b1', 'name': 'ctest-vn-53978492', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58b7420b-c8ab-488b-b77b-c307738fdab8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-53978492'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365']], 'subnet_ipam': [{'subnet_cidr': '45.138.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:02:50,827 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 17:02:51,160 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 17:02:51,188 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef
2025-05-08 17:02:51,203 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2
2025-05-08 17:02:51,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:51,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:51,296 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de
2025-05-08 17:02:51,304 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de
2025-05-08 17:02:51,310 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6853fafb-2ae3-4745-a244-542de02670c5
2025-05-08 17:02:51,317 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 17:02:51,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:51,329 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de
2025-05-08 17:02:51,343 - INFO - Verified VN network id 8 for VN 7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:51,344 - INFO - Verifications in API Server for VN ctest-vn-17448449 passed
2025-05-08 17:02:51,344 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:51,353 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de
2025-05-08 17:02:51,360 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de
2025-05-08 17:02:51,367 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6853fafb-2ae3-4745-a244-542de02670c5
2025-05-08 17:02:51,380 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17792631', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8999377043426069614', 'uuid-lslong': '13044059083926443966'}, 'enable': 'true', 'created': '2025-05-08T17:02:49', 'last-modified': '2025-05-08T17:02:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920683'}
2025-05-08 17:02:51,387 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 17:02:51,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17448449 passed
2025-05-08 17:02:51,387 - DEBUG - ====Verifying policy data for ctest-vn-17448449 in API_Server ======
2025-05-08 17:02:51,387 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 17:02:51,393 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef
2025-05-08 17:02:51,407 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2
2025-05-08 17:02:51,480 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be
2025-05-08 17:02:51,490 - DEBUG - ==>Verifying data for policy with id: 6e1028df-b8f2-4d2d-a2de-daa27c3b1d2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365']
2025-05-08 17:02:51,490 - INFO - VN ctest-vn-17448449 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 17:02:51,491 - DEBUG - Verifying the vn in opserver
2025-05-08 17:02:51,491 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449 virtual network link through opserver 10.0.0.254
2025-05-08 17:02:51,491 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-08 17:02:51,822 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-08 17:02:51,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449?flat'}
2025-05-08 17:02:51,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449 is found in opserver
2025-05-08 17:02:51,889 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 17:02:51,894 - DEBUG - VRF ids for VN ctest-vn-17448449: {}
2025-05-08 17:02:51,894 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 17:02:51,901 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef
2025-05-08 17:02:51,913 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2
2025-05-08 17:02:51,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:52,000 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:52,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802
2025-05-08 17:02:52,018 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802
2025-05-08 17:02:52,025 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7d3148fb-cc87-4058-a085-a679cebd9d63
2025-05-08 17:02:52,031 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 17:02:52,031 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:52,040 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802
2025-05-08 17:02:52,054 - INFO - Verified VN network id 9 for VN 56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:52,054 - INFO - Verifications in API Server for VN ctest-vn-53978492 passed
2025-05-08 17:02:52,054 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:52,064 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802
2025-05-08 17:02:52,071 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802
2025-05-08 17:02:52,078 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7d3148fb-cc87-4058-a085-a679cebd9d63
2025-05-08 17:02:52,091 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17792631', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6254494217802107233', 'uuid-lslong': '13299309179362989489'}, 'enable': 'true', 'created': '2025-05-08T17:02:49', 'last-modified': '2025-05-08T17:02:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406041'}
2025-05-08 17:02:52,098 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 17:02:52,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53978492 passed
2025-05-08 17:02:52,098 - DEBUG - ====Verifying policy data for ctest-vn-53978492 in API_Server ======
2025-05-08 17:02:52,098 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 17:02:52,103 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef
2025-05-08 17:02:52,115 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2
2025-05-08 17:02:52,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1
2025-05-08 17:02:52,201 - DEBUG - ==>Verifying data for policy with id: 6e1028df-b8f2-4d2d-a2de-daa27c3b1d2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365']
2025-05-08 17:02:52,201 - INFO - VN ctest-vn-53978492 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 17:02:52,201 - DEBUG - Verifying the vn in opserver
2025-05-08 17:02:52,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492 virtual network link through opserver 10.0.0.254
2025-05-08 17:02:52,201 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-08 17:02:52,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492?flat'}
2025-05-08 17:02:52,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492 is found in opserver
2025-05-08 17:02:52,222 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 17:02:52,228 - DEBUG - VRF ids for VN ctest-vn-53978492: {}
2025-05-08 17:02:52,282 - DEBUG - Services list from nova: [