2025-05-13 11:13:08,723 - INFO - Domain Default found not creating
2025-05-13 11:13:08,863 - INFO - Project ctest-TestBasicPolicy-04831453 not found, creating it
2025-05-13 11:13:09,310 - INFO - Created Project:ctest-TestBasicPolicy-04831453, ID : 4996d426-aecd-4de1-8a92-967313439dc8
2025-05-13 11:13:10,679 - INFO - ================================================================================
2025-05-13 11:13:10,679 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-13 11:13:10,679 - 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-13 11:13:10,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-05-13 11:13:10,937 - INFO - Initial checks done. Running the testcase now
2025-05-13 11:13:10,937 - INFO -
2025-05-13 11:13:11,469 - DEBUG - Response for create_network : {'network': {'id': '782d5e2e-6f37-4c27-8dec-5fbc3aeef270', 'name': 'ctest-vn-02759354', 'tenant_id': '4996d426aecd4de18a92967313439dc8', 'project_id': '4996d426aecd4de18a92967313439dc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-vn-02759354'], 'port_security_enabled': True, 'description': ''}}
2025-05-13 11:13:11,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd45487f-0cc0-4309-adc8-3a465f9c703c', 'name': '', 'tenant_id': '4996d426aecd4de18a92967313439dc8', 'network_id': '782d5e2e-6f37-4c27-8dec-5fbc3aeef270', 'ip_version': 4, 'cidr': '126.60.27.128/26', 'allocation_pools': [{'start': '126.60.27.130', 'end': '126.60.27.190'}], 'gateway_ip': '126.60.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.60.27.130', 'tags': [], 'project_id': '4996d426aecd4de18a92967313439dc8'}}
2025-05-13 11:13:11,684 - INFO - Created VN ctest-vn-02759354
2025-05-13 11:13:11,735 - DEBUG - VN ctest-vn-02759354 UUID is 782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:12,047 - DEBUG - Response for create_network : {'network': {'id': 'ab7a4baa-fdf9-404b-a19a-d89122940edc', 'name': 'ctest-vn-86540946', 'tenant_id': '4996d426aecd4de18a92967313439dc8', 'project_id': '4996d426aecd4de18a92967313439dc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-vn-86540946'], 'port_security_enabled': True, 'description': ''}}
2025-05-13 11:13:12,233 - DEBUG - Response for create_subnet : {'subnet': {'id': '190e8b24-a119-46c5-ac95-0102112bcc29', 'name': '', 'tenant_id': '4996d426aecd4de18a92967313439dc8', 'network_id': 'ab7a4baa-fdf9-404b-a19a-d89122940edc', 'ip_version': 4, 'cidr': '144.7.104.0/26', 'allocation_pools': [{'start': '144.7.104.2', 'end': '144.7.104.62'}], 'gateway_ip': '144.7.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.7.104.2', 'tags': [], 'project_id': '4996d426aecd4de18a92967313439dc8'}}
2025-05-13 11:13:12,365 - INFO - Created VN ctest-vn-86540946
2025-05-13 11:13:12,415 - DEBUG - VN ctest-vn-86540946 UUID is ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:12,567 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-02759354, 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-04831453:ctest-vn-86540946, 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-13 11:13:12,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '782d5e2e-6f37-4c27-8dec-5fbc3aeef270', 'name': 'ctest-vn-02759354', 'tenant_id': '4996d426aecd4de18a92967313439dc8', 'project_id': '4996d426aecd4de18a92967313439dc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd45487f-0cc0-4309-adc8-3a465f9c703c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-vn-02759354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-policy-allow-all-18147058']], 'subnet_ipam': [{'subnet_cidr': '126.60.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-13 11:13:13,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab7a4baa-fdf9-404b-a19a-d89122940edc', 'name': 'ctest-vn-86540946', 'tenant_id': '4996d426aecd4de18a92967313439dc8', 'project_id': '4996d426aecd4de18a92967313439dc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['190e8b24-a119-46c5-ac95-0102112bcc29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-vn-86540946'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-policy-allow-all-18147058']], 'subnet_ipam': [{'subnet_cidr': '144.7.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-13 11:13:13,287 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-13 11:13:13,582 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-13 11:13:13,609 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd570169-4e27-4437-a3eb-3c7ffe0a6f78
2025-05-13 11:13:13,621 - DEBUG - Requesting: http://10.0.0.22:8082/project/4996d426-aecd-4de1-8a92-967313439dc8
2025-05-13 11:13:13,694 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:13,705 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:13,714 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bd0365e5-8aee-420a-8fb6-6661b2238bb6
2025-05-13 11:13:13,722 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bd0365e5-8aee-420a-8fb6-6661b2238bb6
2025-05-13 11:13:13,728 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bc86bf9e-4ea4-4a47-8992-82be19b7672a
2025-05-13 11:13:13,734 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-13 11:13:13,734 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:13,743 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bd0365e5-8aee-420a-8fb6-6661b2238bb6
2025-05-13 11:13:13,756 - INFO - Verified VN network id 8 for VN 782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:13,756 - INFO - Verifications in API Server for VN ctest-vn-02759354 passed
2025-05-13 11:13:13,756 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:13,765 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bd0365e5-8aee-420a-8fb6-6661b2238bb6
2025-05-13 11:13:13,771 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bd0365e5-8aee-420a-8fb6-6661b2238bb6
2025-05-13 11:13:13,777 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bc86bf9e-4ea4-4a47-8992-82be19b7672a
2025-05-13 11:13:13,788 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-02759354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04831453', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8659681212030733351', 'uuid-lslong': '10226654115898782320'}, 'enable': 'true', 'created': '2025-05-13T11:13:11', 'last-modified': '2025-05-13T11:13:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948515'}
2025-05-13 11:13:13,795 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-13 11:13:13,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02759354 passed
2025-05-13 11:13:13,795 - DEBUG - ====Verifying policy data for ctest-vn-02759354 in API_Server ======
2025-05-13 11:13:13,795 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-13 11:13:13,801 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd570169-4e27-4437-a3eb-3c7ffe0a6f78
2025-05-13 11:13:13,811 - DEBUG - Requesting: http://10.0.0.22:8082/project/4996d426-aecd-4de1-8a92-967313439dc8
2025-05-13 11:13:13,877 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/782d5e2e-6f37-4c27-8dec-5fbc3aeef270
2025-05-13 11:13:13,887 - DEBUG - ==>Verifying data for policy with id: a38e7b69-3641-4894-8225-bc85c100c792, fqn: ['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-policy-allow-all-18147058']
2025-05-13 11:13:13,887 - INFO - VN ctest-vn-02759354 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-13 11:13:13,887 - DEBUG - Verifying the vn in opserver
2025-05-13 11:13:13,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-02759354 virtual network link through opserver 10.0.0.22
2025-05-13 11:13:13,887 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-13 11:13:14,179 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-13 11:13:14,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-02759354', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-02759354?flat'}
2025-05-13 11:13:14,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-02759354 is found in opserver
2025-05-13 11:13:14,240 - DEBUG - Do not have enough data to verify VN in agent
2025-05-13 11:13:14,245 - DEBUG - VRF ids for VN ctest-vn-02759354: {}
2025-05-13 11:13:14,245 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-13 11:13:14,250 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd570169-4e27-4437-a3eb-3c7ffe0a6f78
2025-05-13 11:13:14,261 - DEBUG - Requesting: http://10.0.0.22:8082/project/4996d426-aecd-4de1-8a92-967313439dc8
2025-05-13 11:13:14,335 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:14,347 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:14,359 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e2f6115f-aa99-4e80-9e95-0057a5fe78d8
2025-05-13 11:13:14,368 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e2f6115f-aa99-4e80-9e95-0057a5fe78d8
2025-05-13 11:13:14,374 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/48752d1d-7e01-4412-9bef-f5fbafa79d40
2025-05-13 11:13:14,380 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-13 11:13:14,380 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:14,388 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e2f6115f-aa99-4e80-9e95-0057a5fe78d8
2025-05-13 11:13:14,401 - INFO - Verified VN network id 9 for VN ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:14,401 - INFO - Verifications in API Server for VN ctest-vn-86540946 passed
2025-05-13 11:13:14,401 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:14,410 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e2f6115f-aa99-4e80-9e95-0057a5fe78d8
2025-05-13 11:13:14,416 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e2f6115f-aa99-4e80-9e95-0057a5fe78d8
2025-05-13 11:13:14,422 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/48752d1d-7e01-4412-9bef-f5fbafa79d40
2025-05-13 11:13:14,433 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-86540946', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04831453', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12356271725421871179', 'uuid-lslong': '11644857904381824732'}, 'enable': 'true', 'created': '2025-05-13T11:13:12', 'last-modified': '2025-05-13T11:13:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357040'}
2025-05-13 11:13:14,438 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-13 11:13:14,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86540946 passed
2025-05-13 11:13:14,439 - DEBUG - ====Verifying policy data for ctest-vn-86540946 in API_Server ======
2025-05-13 11:13:14,439 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-13 11:13:14,443 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd570169-4e27-4437-a3eb-3c7ffe0a6f78
2025-05-13 11:13:14,454 - DEBUG - Requesting: http://10.0.0.22:8082/project/4996d426-aecd-4de1-8a92-967313439dc8
2025-05-13 11:13:14,522 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ab7a4baa-fdf9-404b-a19a-d89122940edc
2025-05-13 11:13:14,532 - DEBUG - ==>Verifying data for policy with id: a38e7b69-3641-4894-8225-bc85c100c792, fqn: ['default-domain', 'ctest-TestBasicPolicy-04831453', 'ctest-policy-allow-all-18147058']
2025-05-13 11:13:14,532 - INFO - VN ctest-vn-86540946 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-13 11:13:14,532 - DEBUG - Verifying the vn in opserver
2025-05-13 11:13:14,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-86540946 virtual network link through opserver 10.0.0.22
2025-05-13 11:13:14,532 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-13 11:13:14,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-86540946', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-86540946?flat'}
2025-05-13 11:13:14,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04831453:ctest-vn-86540946 is found in opserver
2025-05-13 11:13:14,553 - DEBUG - Do not have enough data to verify VN in agent
2025-05-13 11:13:14,558 - DEBUG - VRF ids for VN ctest-vn-86540946: {}
2025-05-13 11:13:14,616 - DEBUG - Services list from nova: [