2025-01-28 13:50:59,936 - INFO - Domain Default found not creating
2025-01-28 13:51:00,093 - INFO - Project ctest-TestBasicPolicy-78816929 not found, creating it
2025-01-28 13:51:00,552 - INFO - Created Project:ctest-TestBasicPolicy-78816929, ID : 2d58b736-d3d4-481a-ba3c-c659b115dde6
2025-01-28 13:51:02,014 - INFO - ================================================================================
2025-01-28 13:51:02,014 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-28 13:51:02,014 - 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-01-28 13:51:02,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with
2025-01-28 13:51:02,293 - INFO - Initial checks done. Running the testcase now
2025-01-28 13:51:02,293 - INFO -
2025-01-28 13:51:02,862 - DEBUG - Response for create_network : {'network': {'id': '2c37c483-c82d-4b64-ab1b-910373e3ba85', 'name': 'ctest-vn-29790442', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29790442'], 'port_security_enabled': True, 'description': ''}}
2025-01-28 13:51:03,064 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5c06b7b-fc39-4d3a-8f85-fce7ac19d86d', 'name': '', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'network_id': '2c37c483-c82d-4b64-ab1b-910373e3ba85', 'ip_version': 4, 'cidr': '11.129.214.64/26', 'allocation_pools': [{'start': '11.129.214.66', 'end': '11.129.214.126'}], 'gateway_ip': '11.129.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.129.214.66', 'tags': [], 'project_id': '2d58b736d3d4481aba3cc659b115dde6'}}
2025-01-28 13:51:03,083 - INFO - Created VN ctest-vn-29790442
2025-01-28 13:51:03,136 - DEBUG - VN ctest-vn-29790442 UUID is 2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:03,430 - DEBUG - Response for create_network : {'network': {'id': '0624bbde-2dd3-4bc2-99b3-038d182b79ca', 'name': 'ctest-vn-29203653', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29203653'], 'port_security_enabled': True, 'description': ''}}
2025-01-28 13:51:03,654 - DEBUG - Response for create_subnet : {'subnet': {'id': '89e05e31-f11b-4bc7-9a06-6e7bf4c4eba0', 'name': '', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'network_id': '0624bbde-2dd3-4bc2-99b3-038d182b79ca', 'ip_version': 4, 'cidr': '150.2.224.128/26', 'allocation_pools': [{'start': '150.2.224.130', 'end': '150.2.224.190'}], 'gateway_ip': '150.2.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.2.224.130', 'tags': [], 'project_id': '2d58b736d3d4481aba3cc659b115dde6'}}
2025-01-28 13:51:03,674 - INFO - Created VN ctest-vn-29203653
2025-01-28 13:51:03,728 - DEBUG - VN ctest-vn-29203653 UUID is 0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:03,854 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442, 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-78816929:ctest-vn-29203653, 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-01-28 13:51:04,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c37c483-c82d-4b64-ab1b-910373e3ba85', 'name': 'ctest-vn-29790442', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5c06b7b-fc39-4d3a-8f85-fce7ac19d86d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29790442'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273']], 'subnet_ipam': [{'subnet_cidr': '11.129.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-28 13:51:04,462 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0624bbde-2dd3-4bc2-99b3-038d182b79ca', 'name': 'ctest-vn-29203653', 'tenant_id': '2d58b736d3d4481aba3cc659b115dde6', 'project_id': '2d58b736d3d4481aba3cc659b115dde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89e05e31-f11b-4bc7-9a06-6e7bf4c4eba0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-vn-29203653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273']], 'subnet_ipam': [{'subnet_cidr': '150.2.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-28 13:51:04,612 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-28 13:51:04,915 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-28 13:51:04,943 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c
2025-01-28 13:51:04,957 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6
2025-01-28 13:51:05,030 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:05,043 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:05,054 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4
2025-01-28 13:51:05,064 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4
2025-01-28 13:51:05,073 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/36698a9c-27cc-47c1-926f-11b704eea960
2025-01-28 13:51:05,080 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-28 13:51:05,080 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:05,091 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4
2025-01-28 13:51:05,108 - INFO - Verified VN network id 7 for VN 2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:05,108 - INFO - Verifications in API Server for VN ctest-vn-29790442 passed
2025-01-28 13:51:05,108 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:05,119 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4
2025-01-28 13:51:05,129 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/41a4beb6-6d35-4b6f-9529-1b2f402edfa4
2025-01-28 13:51:05,139 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/36698a9c-27cc-47c1-926f-11b704eea960
2025-01-28 13:51:05,151 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78816929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3186231331666086756', 'uuid-lslong': '12329607848872098437'}, 'enable': 'true', 'created': '2025-01-28T13:51:02', 'last-modified': '2025-01-28T13:51:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004013'}
2025-01-28 13:51:05,158 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-28 13:51:05,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29790442 passed
2025-01-28 13:51:05,158 - DEBUG - ====Verifying policy data for ctest-vn-29790442 in API_Server ======
2025-01-28 13:51:05,158 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-28 13:51:05,164 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c
2025-01-28 13:51:05,177 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6
2025-01-28 13:51:05,259 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2c37c483-c82d-4b64-ab1b-910373e3ba85
2025-01-28 13:51:05,272 - DEBUG - ==>Verifying data for policy with id: ca793451-23b0-480a-926c-9da77b0fd12c, fqn: ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273']
2025-01-28 13:51:05,272 - INFO - VN ctest-vn-29790442 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-28 13:51:05,273 - DEBUG - Verifying the vn in opserver
2025-01-28 13:51:05,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442 virtual network link through opserver 10.0.0.45
2025-01-28 13:51:05,273 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-28 13:51:05,566 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-28 13:51:05,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442?flat'}
2025-01-28 13:51:05,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29790442 is found in opserver
2025-01-28 13:51:05,640 - DEBUG - Do not have enough data to verify VN in agent
2025-01-28 13:51:05,647 - DEBUG - VRF ids for VN ctest-vn-29790442: {}
2025-01-28 13:51:05,647 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-28 13:51:05,655 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c
2025-01-28 13:51:05,668 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6
2025-01-28 13:51:05,757 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:05,773 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:05,784 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13
2025-01-28 13:51:05,792 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13
2025-01-28 13:51:05,800 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f82d3d44-000d-40ed-a2d5-b4fdfe541369
2025-01-28 13:51:05,807 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-28 13:51:05,807 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:05,818 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13
2025-01-28 13:51:05,837 - INFO - Verified VN network id 8 for VN 0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:05,837 - INFO - Verifications in API Server for VN ctest-vn-29203653 passed
2025-01-28 13:51:05,838 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:05,848 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13
2025-01-28 13:51:05,856 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/63e9df87-ef3d-49f8-9190-a51b654ffc13
2025-01-28 13:51:05,863 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f82d3d44-000d-40ed-a2d5-b4fdfe541369
2025-01-28 13:51:05,876 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78816929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '442685226315107266', 'uuid-lslong': '11075199813164956106'}, 'enable': 'true', 'created': '2025-01-28T13:51:03', 'last-modified': '2025-01-28T13:51:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490270'}
2025-01-28 13:51:05,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-28 13:51:05,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29203653 passed
2025-01-28 13:51:05,883 - DEBUG - ====Verifying policy data for ctest-vn-29203653 in API_Server ======
2025-01-28 13:51:05,883 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-28 13:51:05,889 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9480339b-7817-4ee5-ba1f-677a564a693c
2025-01-28 13:51:05,901 - DEBUG - Requesting: http://10.0.0.45:8082/project/2d58b736-d3d4-481a-ba3c-c659b115dde6
2025-01-28 13:51:05,982 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0624bbde-2dd3-4bc2-99b3-038d182b79ca
2025-01-28 13:51:05,993 - DEBUG - ==>Verifying data for policy with id: ca793451-23b0-480a-926c-9da77b0fd12c, fqn: ['default-domain', 'ctest-TestBasicPolicy-78816929', 'ctest-policy-allow-all-07417273']
2025-01-28 13:51:05,993 - INFO - VN ctest-vn-29203653 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-28 13:51:05,993 - DEBUG - Verifying the vn in opserver
2025-01-28 13:51:05,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653 virtual network link through opserver 10.0.0.45
2025-01-28 13:51:05,993 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-28 13:51:06,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653?flat'}
2025-01-28 13:51:06,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78816929:ctest-vn-29203653 is found in opserver
2025-01-28 13:51:06,017 - DEBUG - Do not have enough data to verify VN in agent
2025-01-28 13:51:06,023 - DEBUG - VRF ids for VN ctest-vn-29203653: {}
2025-01-28 13:51:06,095 - DEBUG - Services list from nova: [