2025-03-20 02:23:44,878 - INFO - Domain Default found not creating
2025-03-20 02:23:45,029 - INFO - Project ctest-TestBasicPolicy-61344574 not found, creating it
2025-03-20 02:23:45,474 - INFO - Created Project:ctest-TestBasicPolicy-61344574, ID : f47efa9f-59ad-4065-8f6a-88cca4f29851
2025-03-20 02:23:46,964 - INFO - ================================================================================
2025-03-20 02:23:46,964 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-20 02:23:46,965 - 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-20 02:23:47,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.20': '0'}} with
2025-03-20 02:23:47,219 - INFO - Initial checks done. Running the testcase now
2025-03-20 02:23:47,219 - INFO -
2025-03-20 02:23:47,911 - DEBUG - Response for create_network : {'network': {'id': '0d3095b1-ab87-4ce3-ba56-bea0cf335dae', 'name': 'ctest-vn-61283231', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-61283231'], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:23:48,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '0779e4e2-7da8-45d0-b70f-05b2f64cc1ee', 'name': '', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'network_id': '0d3095b1-ab87-4ce3-ba56-bea0cf335dae', 'ip_version': 4, 'cidr': '105.78.168.192/26', 'allocation_pools': [{'start': '105.78.168.194', 'end': '105.78.168.254'}], 'gateway_ip': '105.78.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.78.168.194', 'tags': [], 'project_id': 'f47efa9f59ad40658f6a88cca4f29851'}}
2025-03-20 02:23:48,080 - INFO - Created VN ctest-vn-61283231
2025-03-20 02:23:48,133 - DEBUG - VN ctest-vn-61283231 UUID is 0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:48,418 - DEBUG - Response for create_network : {'network': {'id': '412272ee-c74b-443e-ba0f-bb13a64931d8', 'name': 'ctest-vn-17879889', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-17879889'], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:23:48,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '452ccdc0-9f78-4480-b9fe-9b6457c9efcc', 'name': '', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'network_id': '412272ee-c74b-443e-ba0f-bb13a64931d8', 'ip_version': 4, 'cidr': '45.246.208.128/26', 'allocation_pools': [{'start': '45.246.208.130', 'end': '45.246.208.190'}], 'gateway_ip': '45.246.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.246.208.130', 'tags': [], 'project_id': 'f47efa9f59ad40658f6a88cca4f29851'}}
2025-03-20 02:23:48,637 - INFO - Created VN ctest-vn-17879889
2025-03-20 02:23:48,689 - DEBUG - VN ctest-vn-17879889 UUID is 412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:48,806 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231, 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-61344574:ctest-vn-17879889, 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-20 02:23:49,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d3095b1-ab87-4ce3-ba56-bea0cf335dae', 'name': 'ctest-vn-61283231', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0779e4e2-7da8-45d0-b70f-05b2f64cc1ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-61283231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326']], 'subnet_ipam': [{'subnet_cidr': '105.78.168.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:23:49,337 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '412272ee-c74b-443e-ba0f-bb13a64931d8', 'name': 'ctest-vn-17879889', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['452ccdc0-9f78-4480-b9fe-9b6457c9efcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-17879889'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326']], 'subnet_ipam': [{'subnet_cidr': '45.246.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:23:49,505 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2025-03-20 02:23:49,803 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2025-03-20 02:23:49,832 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024
2025-03-20 02:23:49,847 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851
2025-03-20 02:23:49,919 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:49,930 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:49,938 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3
2025-03-20 02:23:49,946 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3
2025-03-20 02:23:49,955 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/f3344cea-75d3-4f62-b1f9-010e84ccc15e
2025-03-20 02:23:49,961 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-20 02:23:49,962 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:49,970 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3
2025-03-20 02:23:49,982 - INFO - Verified VN network id 8 for VN 0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:49,983 - INFO - Verifications in API Server for VN ctest-vn-61283231 passed
2025-03-20 02:23:49,983 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:49,991 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3
2025-03-20 02:23:50,000 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3
2025-03-20 02:23:50,009 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/f3344cea-75d3-4f62-b1f9-010e84ccc15e
2025-03-20 02:23:50,021 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61344574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '950424111694695651', 'uuid-lslong': '13427128936932007342'}, 'enable': 'true', 'created': '2025-03-20T02:23:47', 'last-modified': '2025-03-20T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943475'}
2025-03-20 02:23:50,029 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-20 02:23:50,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61283231 passed
2025-03-20 02:23:50,029 - DEBUG - ====Verifying policy data for ctest-vn-61283231 in API_Server ======
2025-03-20 02:23:50,030 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2025-03-20 02:23:50,036 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024
2025-03-20 02:23:50,047 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851
2025-03-20 02:23:50,121 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae
2025-03-20 02:23:50,131 - DEBUG - ==>Verifying data for policy with id: 6e7d2416-8f19-4a28-8bd4-f623b293dfd6, fqn: ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326']
2025-03-20 02:23:50,131 - INFO - VN ctest-vn-61283231 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-20 02:23:50,131 - DEBUG - Verifying the vn in opserver
2025-03-20 02:23:50,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231 virtual network link through opserver 10.0.0.59
2025-03-20 02:23:50,131 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2025-03-20 02:23:50,423 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2025-03-20 02:23:50,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231?flat'}
2025-03-20 02:23:50,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231 is found in opserver
2025-03-20 02:23:50,493 - DEBUG - Do not have enough data to verify VN in agent
2025-03-20 02:23:50,498 - DEBUG - VRF ids for VN ctest-vn-61283231: {}
2025-03-20 02:23:50,498 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2025-03-20 02:23:50,507 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024
2025-03-20 02:23:50,521 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851
2025-03-20 02:23:50,589 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:50,600 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:50,608 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e
2025-03-20 02:23:50,616 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e
2025-03-20 02:23:50,623 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/deb98724-2af4-4aa7-853e-6c7ce0d6a385
2025-03-20 02:23:50,630 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-20 02:23:50,630 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:50,639 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e
2025-03-20 02:23:50,651 - INFO - Verified VN network id 9 for VN 412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:50,651 - INFO - Verifications in API Server for VN ctest-vn-17879889 passed
2025-03-20 02:23:50,652 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:50,660 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e
2025-03-20 02:23:50,668 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e
2025-03-20 02:23:50,675 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/deb98724-2af4-4aa7-853e-6c7ce0d6a385
2025-03-20 02:23:50,688 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61344574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4693440131544859710', 'uuid-lslong': '13407140308773843416'}, 'enable': 'true', 'created': '2025-03-20T02:23:48', 'last-modified': '2025-03-20T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371796'}
2025-03-20 02:23:50,695 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-20 02:23:50,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17879889 passed
2025-03-20 02:23:50,695 - DEBUG - ====Verifying policy data for ctest-vn-17879889 in API_Server ======
2025-03-20 02:23:50,695 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2025-03-20 02:23:50,701 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024
2025-03-20 02:23:50,713 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851
2025-03-20 02:23:50,782 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8
2025-03-20 02:23:50,792 - DEBUG - ==>Verifying data for policy with id: 6e7d2416-8f19-4a28-8bd4-f623b293dfd6, fqn: ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326']
2025-03-20 02:23:50,792 - INFO - VN ctest-vn-17879889 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-20 02:23:50,792 - DEBUG - Verifying the vn in opserver
2025-03-20 02:23:50,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889 virtual network link through opserver 10.0.0.59
2025-03-20 02:23:50,792 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2025-03-20 02:23:50,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889?flat'}
2025-03-20 02:23:50,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889 is found in opserver
2025-03-20 02:23:50,815 - DEBUG - Do not have enough data to verify VN in agent
2025-03-20 02:23:50,820 - DEBUG - VRF ids for VN ctest-vn-17879889: {}
2025-03-20 02:23:50,880 - DEBUG - Services list from nova: [