2025-03-28 18:17:55,556 - INFO - Domain Default found not creating
2025-03-28 18:17:55,724 - INFO - Project ctest-TestBasicPolicy-95816823 not found, creating it
2025-03-28 18:17:56,205 - INFO - Created Project:ctest-TestBasicPolicy-95816823, ID : 06ec53c6-6696-4775-9c8f-eefab6b52512
2025-03-28 18:17:57,761 - INFO - ================================================================================
2025-03-28 18:17:57,761 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 18:17:57,761 - 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-28 18:17:58,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with
2025-03-28 18:17:58,022 - INFO - Initial checks done. Running the testcase now
2025-03-28 18:17:58,022 - INFO -
2025-03-28 18:17:58,605 - DEBUG - Response for create_network : {'network': {'id': '3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec', 'name': 'ctest-vn-81906114', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-81906114'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 18:17:58,805 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1da77ca-76ad-49aa-9f0b-9a700abd0bb3', 'name': '', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'network_id': '3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec', 'ip_version': 4, 'cidr': '82.42.34.64/26', 'allocation_pools': [{'start': '82.42.34.66', 'end': '82.42.34.126'}], 'gateway_ip': '82.42.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.42.34.66', 'tags': [], 'project_id': '06ec53c6669647759c8feefab6b52512'}}
2025-03-28 18:17:58,825 - INFO - Created VN ctest-vn-81906114
2025-03-28 18:17:58,881 - DEBUG - VN ctest-vn-81906114 UUID is 3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:17:59,231 - DEBUG - Response for create_network : {'network': {'id': 'e9c94229-309f-4740-815c-53c2e7cce45f', 'name': 'ctest-vn-70489536', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-70489536'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 18:17:59,460 - DEBUG - Response for create_subnet : {'subnet': {'id': '764c5f64-f7ba-4e9c-b36b-5b51c85a1d05', 'name': '', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'network_id': 'e9c94229-309f-4740-815c-53c2e7cce45f', 'ip_version': 4, 'cidr': '107.166.245.64/26', 'allocation_pools': [{'start': '107.166.245.66', 'end': '107.166.245.126'}], 'gateway_ip': '107.166.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.166.245.66', 'tags': [], 'project_id': '06ec53c6669647759c8feefab6b52512'}}
2025-03-28 18:17:59,479 - INFO - Created VN ctest-vn-70489536
2025-03-28 18:17:59,533 - DEBUG - VN ctest-vn-70489536 UUID is e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:17:59,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114, 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-95816823:ctest-vn-70489536, 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-28 18:17:59,973 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec', 'name': 'ctest-vn-81906114', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1da77ca-76ad-49aa-9f0b-9a700abd0bb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-81906114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506']], 'subnet_ipam': [{'subnet_cidr': '82.42.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 18:18:00,277 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9c94229-309f-4740-815c-53c2e7cce45f', 'name': 'ctest-vn-70489536', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['764c5f64-f7ba-4e9c-b36b-5b51c85a1d05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-70489536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506']], 'subnet_ipam': [{'subnet_cidr': '107.166.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 18:18:00,425 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-03-28 18:18:00,726 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-03-28 18:18:00,759 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe
2025-03-28 18:18:00,775 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512
2025-03-28 18:18:00,855 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:18:00,870 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:18:00,884 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426
2025-03-28 18:18:00,895 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426
2025-03-28 18:18:00,905 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7274eddf-cdf9-421d-9042-bc6b4fece4c1
2025-03-28 18:18:00,915 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 18:18:00,916 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:18:00,927 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426
2025-03-28 18:18:00,947 - INFO - Verified VN network id 8 for VN 3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:18:00,947 - INFO - Verifications in API Server for VN ctest-vn-81906114 passed
2025-03-28 18:18:00,947 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:18:00,959 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426
2025-03-28 18:18:00,970 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426
2025-03-28 18:18:00,980 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7274eddf-cdf9-421d-9042-bc6b4fece4c1
2025-03-28 18:18:00,994 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95816823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4480631632345518041', 'uuid-lslong': '13775319653099694316'}, 'enable': 'true', 'created': '2025-03-28T18:17:58', 'last-modified': '2025-03-28T18:17:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046098'}
2025-03-28 18:18:01,002 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 18:18:01,003 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81906114 passed
2025-03-28 18:18:01,003 - DEBUG - ====Verifying policy data for ctest-vn-81906114 in API_Server ======
2025-03-28 18:18:01,003 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-03-28 18:18:01,011 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe
2025-03-28 18:18:01,027 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512
2025-03-28 18:18:01,105 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec
2025-03-28 18:18:01,116 - DEBUG - ==>Verifying data for policy with id: 6c9e7011-7a3f-4172-bcc0-272dc939c13e, fqn: ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506']
2025-03-28 18:18:01,116 - INFO - VN ctest-vn-81906114 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 18:18:01,116 - DEBUG - Verifying the vn in opserver
2025-03-28 18:18:01,116 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114 virtual network link through opserver 10.0.0.23
2025-03-28 18:18:01,116 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-03-28 18:18:01,426 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-03-28 18:18:01,503 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114?flat'}
2025-03-28 18:18:01,503 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114 is found in opserver
2025-03-28 18:18:01,516 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 18:18:01,523 - DEBUG - VRF ids for VN ctest-vn-81906114: {}
2025-03-28 18:18:01,524 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-03-28 18:18:01,532 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe
2025-03-28 18:18:01,550 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512
2025-03-28 18:18:01,635 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:18:01,649 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:18:01,662 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e
2025-03-28 18:18:01,674 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e
2025-03-28 18:18:01,684 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eb35c4c2-b6b8-4cc2-9cd7-52d0aa2a9071
2025-03-28 18:18:01,694 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 18:18:01,694 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:18:01,708 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e
2025-03-28 18:18:01,726 - INFO - Verified VN network id 9 for VN e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:18:01,726 - INFO - Verifications in API Server for VN ctest-vn-70489536 passed
2025-03-28 18:18:01,726 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:18:01,738 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e
2025-03-28 18:18:01,748 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e
2025-03-28 18:18:01,760 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eb35c4c2-b6b8-4cc2-9cd7-52d0aa2a9071
2025-03-28 18:18:01,779 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95816823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16846068625832888128', 'uuid-lslong': '9321417425327809631'}, 'enable': 'true', 'created': '2025-03-28T18:17:59', 'last-modified': '2025-03-28T18:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573044'}
2025-03-28 18:18:01,788 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 18:18:01,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70489536 passed
2025-03-28 18:18:01,789 - DEBUG - ====Verifying policy data for ctest-vn-70489536 in API_Server ======
2025-03-28 18:18:01,789 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-03-28 18:18:01,797 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe
2025-03-28 18:18:01,814 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512
2025-03-28 18:18:01,890 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f
2025-03-28 18:18:01,901 - DEBUG - ==>Verifying data for policy with id: 6c9e7011-7a3f-4172-bcc0-272dc939c13e, fqn: ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506']
2025-03-28 18:18:01,901 - INFO - VN ctest-vn-70489536 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 18:18:01,901 - DEBUG - Verifying the vn in opserver
2025-03-28 18:18:01,902 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536 virtual network link through opserver 10.0.0.23
2025-03-28 18:18:01,902 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-03-28 18:18:01,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536?flat'}
2025-03-28 18:18:01,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536 is found in opserver
2025-03-28 18:18:01,933 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 18:18:01,942 - DEBUG - VRF ids for VN ctest-vn-70489536: {}
2025-03-28 18:18:02,043 - DEBUG - Services list from nova: [